I'm facing some problem in my css project. I tried to put an image in a div and somehow it puts a white-space below the image.
here is my html code:
* {
box-sizing: border-box;
}
body {
margin: 0;
}
#top {
border: solid;
}
#page-top {
border: solid;
width: 1028px;
background: yellow;
margin: 0 auto;
}
#page-top img {
width: 30%;
border: solid;
display: inline-block;
}
<div id="top">
<div id="page-top">
<img src="https://i.imgur.com/7nqdfTK.png">
</div>
</div>