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

HTML How to Make a Website Adding Pages to a Website Add Iconography

Jordan Meek
Jordan Meek
480 Points

How do I get my nav bar wider?

Just need to make my nav bar wider. It's a lot thinner than Nick's and I can't figure out why that is.

1 Answer

Kent Γ…svang
Kent Γ…svang
18,823 Points

You can use "width" to adjust the width of an html-element. Depending on various ideas you also have max-width and min-width to choose from. I think nick is using "max-width: 100%;" in that lesson.

If this doesn't work it would be helpful if you could provide your CSS-code for us to review.

Good luck.