I am trying to make a navbar with imag, I don't know what to do because the main problem is that the image has to be resized but when it's done the 'li' tag are too big in height and I don't know how to deal with it and I don't know where it's from. Basically, i'm trying to do a navabar with images with the same height but when I'm dealing with the there is an extra space. I did some research but I found nothing about this <li>
problem.
Here some code for example :
#bas_page ul{
list-style: none;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
justify-content: center;
padding:0;
height: 80px;
width: 90%;
display: inline-block;
margin: 0 auto;
vertical-align: center;
}
#bas_page li{
display: inline-block;
}
.icon_contact{
height: 100%;
}
#bas_page #mon_email{
background: white;
position: relative;
color: #50667F;
font-size: 100%;
padding: 5%;
box-sizing: border-box;
font-weight: bold;
margin: 0;
}
<footer id="bas_page">
<ul>
<li><a href="#"><img src="https://facebookbrand.com/wp-content/themes/fb-branding/prj-fb-branding/assets/images/fb-art.png" class="icon_contact" alt="My Facebook"></a></li>
<li><a href="#"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSJ_YIhdykKf9oMnK1G1qIpiE7PREjJD_xHSQLP6nThnf2PMLE9" class="icon_contact" alt="My Linkedin"></a></li>
<li><a href="#"><p id="mon_email" class="icon_contact">ffffff@gmail.com</p></a></li>
</ul>
</footer>
SOLUTION
It's from the <img>
and not the <li>
vertical-align
here I found some explanation