i'm making this website for a school project, and i can't figure out whats wrong with the header. For some reason there is a small gap at the bottom of the header underneath the image inside it. Despite not giving the header a defined height. Anyone know how to fix this or what the problem is?
HTML:
<header id="header-wrap">
<img class="header-img" src="../images/header-img.png" alt="">
</header>
CSS:
header {
text-align: center;
grid-area: header;
}
#header-wrap {
background-color: #212635;
}
.header-img {
width: 50%;
position: relative;
}
This is how it ends up looking: Click here
header {
text-align: center;
grid-area: header;
}
#header-wrap {
background-color: red;
}
.header-img {
width: 50%;
position: relative;
}
<header id="header-wrap">
<img class="header-img" src="https://i.stack.imgur.com/iqurS.jpg" alt="">
</header>