Welcome to the Treehouse Community
Looking to learn something new?
Stein Christensen3,592 Points
Help with child element over flowing
My goal is to style a navigation with a larger logo that extends above and below the navigation.
Including the logo in the navigation, floating it left, and clearing it does not solve the problem because navigation now stretches to include the height of the large logo.
Help is greatly appreciated!
Sean T. Unwin28,660 Points
If your logo is inside the navigation and you want it to be placed "freely" or outside the bounds of it's parent (the navigation) without affecting the parent, then you can use
position: absolute on the logo. That way you can adjust the size and placement to your liking.
Have you tried using a negative top and bottom margin on your logo?