I have an image that I'm using as the home button for a navbar on a website. I want the image height to exceed the height of the navbar (so that it hangs over the bottom of the navbar). I tried setting the max-height for the navbar to half of the height for the image/home button, but it just crops the image instead of allowing it to overrun the bar. How do I style it so that my image/button can be larger than the navbar?
<link href="https://www.w3schools.com/w3css/4/w3.css" rel="stylesheet"/>
<div class="w3-bar w3-black w3-card-4 w3-large" style="max-height: 4em;">
<a href="/home">
<img src="{% static 'myProject/images/Logo_nobg.png' %}" style="width: 7em; height: 7em; background: transparent; z-index: 15;">
</a>
<div class="w3-right w3-hide-small" style="display: flex; justify-content: right; align-items: center; height: 75px; margin-right: 10px; font-family: Impact, sans-serif; font-size: 1.25em;">
<div class="w3-dropdown-hover">
<button class="w3-button">Services</button>
<div class="w3-dropdown-content w3-bar-block w3-card-4">
<a href="/coaching#coach" class="w3-bar-item w3-button w3-white">Coaching</a>
<a href="/coaching#rental" class="w3-bar-item w3-button w3-white">Rentals</a>
<a href="/coaching#pricing" class="w3-bar-item w3-button w3-white">Packages and Pricing</a>
</div>
</div>
<a href="/sales" class="w3-bar-item w3-button">Sales</a>
<a href="/info" class="w3-bar-item w3-button">FAQ</a>
<a href="/contact" class="w3-bar-item w3-button">Contact</a>
</div>
</div>
</div>