Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
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,688 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?