My webpage features a logo alongside a menu:
Here's the HTML code:
<div id="logomenuwrapper">
<div id="logo"><img src="img/logo_light.jpg"/></div>
<div id="menu">
<ul>
<li><a href="#">About</a></li>
<li class="notfirst"><a href="#">Work</a></li>
<li class="notfirst"><a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="630e02021117060d23000c07">[email protected]</a>?subject=Hello">Contact</a></li>
</ul>
</div>
</div>
This is the CSS styling applied:
#logomenuwrapper{overflow:hidden;}
#logo
{
padding-right:1.2%;float:left; max-width:100% !important;
max-height:100% !important;
display:block;
}
#menu{float:left;padding-left:1.2%;font-size:0.875em;border-left:1px solid #ea4a4a;}
#menu ul li.notfirst
{
padding-top:0.3225em;
}
I have implemented media queries to adjust the menu font size on smaller screens.
However, I'm facing an issue where the menu becomes smaller than the logo. How can I make the logo scale proportionally with the menu? I've already added the following CSS rule:
img {max-width:100%;}
Shown below is an example of how it appears on a smaller screen (notice the oversized logo):