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! While you're at it, check out some resources Treehouse students have shared here.
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 trialAndres Sapper
9,093 PointsStatic navigation on the left side
What's the best practice for making a navigation static on the left side (as it is here in Treehouse)? It shouldn't reload every time someone clicks an item, it should just reload the page content.
Should I use [CSS] 'clear: both', or 'float: left', or something along those lines?
Thanks.
1 Answer
Matthew McLennan
10,315 PointsIts a float:left but there is more to it than that. Take a look at the link below. It provides a step by step on how to do something very similar. Going forward Codrops and Bootsnipp are great places to find code and reverse engineer to learn.
http://tympanus.net/codrops/2013/07/30/google-nexus-website-menu/
Andres Sapper
9,093 PointsAndres Sapper
9,093 PointsThanks for your answer!
Matthew McLennan
10,315 PointsMatthew McLennan
10,315 PointsYou are welcome. Treehouse is a great place to learn. The layout is far superior to a lot of others out there. Don't forget to utilize what you've learned by doing a side project. You won't truly understand it to you apply it as a solution to your own problem. Also Guil's class on Jekyll and Github pages is probably one of the most important you take. Especially the part on hosting your own site for free.