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
Jeff Mathis
3,935 PointsNavigation Bar
I'm trying to make a navigation bar for my website. I have everything set up aligned horizontal with the background that i want with all my links in it. My only problem is figuring out how to center everything inside the navigation bar and having everything spaced out evenly. Can anybody help me out with this?
2 Answers
Calvin Maighan
12,061 PointsIf I were you I would check out Guil's Deep Dive on CSS Layout Techniques!
(https://teamtreehouse.com/library/css-layout-techniques#display-modes)
It should clear up all of your positioning problems and give you additional tricks for better practice! :)
Gary Hurd
17,533 PointsHi Jeff, Have you set the text-align to center? that would center the text within the area. Try that and see if that helps. Without seeing exactly what you have so far, and you saying that everything is laid out like you want it, I am thinking that you just need to center the text and then everything might be the way you want. Just a suggestion from what I am reading. Hope this helps. g