The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Nav tag height issue, overflowing container in y
Please check the working example, if you inspect the nav tag, it exceeds 5 px from container height. Where this 5px come from?, i know how to fix them, but just dont know why they exist at all.
Can someone give me a explanation, so i can better understand this case.
Been searching around, but cant find good information about this.
Btw, my fix was to add height: 100%; on nav class.
I confess, I’m not entirely sure but you have line height of 40px on the div.Navbar-Profile.
If you remove that and put in the anchor tags (which, is really where it should be) the problem is resolved.
Nice, its a better solution than mine, no extra style lines. :).
But why does the anchor tags do that? Messing around with the container height?