I've got 2 section tags on top of each other. The first contains an image the second just some text.
But for some reason the first is putting a few pixels extra padding at the bottom. Why????
<section class="s1"><img src="something.jpg" width="500" height="500" /></section>
<section class="s2"> Test Test Test </section>
I tried this in the styling
section, img {
padding: 0;
margin: 0
}
.s1 {
background-color: black
}
.s2 {
background-color: red
}
https://jsfiddle.net/ctscby6z/
Ignore the fact it's a broken image, does the same with a real image too.
Thanks.