How to remove indentation between <div>s | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to remove indentation between <div>s

Above there is one div with a picture. Below there is another div with a picture. Between them there is a small empty white space. Please, programmers, explain if you know solution for this.

29th Jan 2018, 5:02 PM
Bakhrom Akbarov
Bakhrom Akbarov - avatar
7 Answers
+ 1
I tried. But no result. There is nothing in the code that divides them.
29th Jan 2018, 5:32 PM
Bakhrom Akbarov
Bakhrom Akbarov - avatar
+ 1
one after another
29th Jan 2018, 6:09 PM
Bakhrom Akbarov
Bakhrom Akbarov - avatar
+ 1
OK! I will look at it and get you know
29th Jan 2018, 6:16 PM
Bakhrom Akbarov
Bakhrom Akbarov - avatar
0
Try to give div{Margin:0px; padding:0px;}
29th Jan 2018, 5:26 PM
Darshan K M
Darshan K M - avatar
0
do you want them to come next to each other or one after another
29th Jan 2018, 6:08 PM
Darshan K M
Darshan K M - avatar
0
div, img{margin:0px; padding:0px;} if it doesn't work check html code, that u have closed all tags properly
29th Jan 2018, 6:14 PM
Darshan K M
Darshan K M - avatar
0
I've checked. All tags are closed.
31st Jan 2018, 2:28 AM
Bakhrom Akbarov
Bakhrom Akbarov - avatar