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 trial
nicolaslemaire
12,806 PointsProblem with my floating horizontal nav bar
Hi guys, reviewing this video: https://teamtreehouse.com/library/css-layout-basics/css-layout-project/column-layout-with-media-queries
I don't understand because I think I've written exactly what Guil wrote in his code but in contrast to him, in my nav bar, after the floating process, a technical issue shows up. Indeed, Best Guide and the nav bar are NOT on the same line... I could "fix" it with some margin properties but is there any "more professional way" to fix this issue. I used "clearfix" like him, but I don't get the same result, BestCityGuide is centered vertically in its header but the nav bar is stuck to the top right corner of the screen. Any help on that? Thanks indeed!
3 Answers
nicolaslemaire
12,806 PointsHey Jennifer, thanks for the tip, didn't know that ;) OK, so, I've taken a snapshot so here is the link: https://w.trhou.se/tvhgnml8xp
Hope you can open it, thanks Jen!
nicolaslemaire
12,806 PointsOK, I actually fixed the problem by adding some "margin-top" to ".main-nav li"... I wish there were some sort of more "elegant" way but no answer and the problem is fixed, so let's move on! :)
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherThis is going to be much easier to help you troubleshoot if we can get a link to the snapshot of your workspace. This will allow us to fork it and see what might be causing the issue