I made a simple code on codepen.io and when I put some elements inside a Div, somehow there is still some kind of space between the bottom side of those elements and the div itself? How do you remove that space with css?
I could remove the gap/space between the img elements, by simply putting the code next to each other, with no space or enter characters. But, I've no idea how to remove the space between the bottom side of the img elements with the inner margin of the Div.
You could see my code here: https://codepen.io/matthewbusbee/pen/OYmede
HTML file
<div>
<img src="https://www.freeiconspng.com/uploads/cloud-outline-icon-23.png"><img src="https://www.freeiconspng.com/uploads/cloud-outline-icon-23.png"><img src="https://www.freeiconspng.com/uploads/cloud-outline-icon-23.png">
</div>
CSS file
div {
background-color: #d2f3e0;
}
img {
background-color: skyblue;
width: 200px;
}
img {
border: solid 1px;
}
I expect the space between the bottom side of the img elements and div could be removed, just like the top & left side of the img elements where there's no space. Thanks.