Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Is there a way to get a nav container inside of a header container to fill 100% width of viewport?
For desktop, what I want is a responsive menu, with ul li #1 to be on the far left of the header and the other ul li to be on the far right of the header (similar to what you see at http://samallen502.github.io). For this, I am using flexbox. However, the ul are children of a nav, which has a header parent. Therefore, flexbox is working but not expanding to 100% width of the viewport, like I want .
Current index.html: https://github.com/samallen502/samallen502.github.io/blob/mobilefirst/index.html
Thanks for any help that anyone can provide. I understand that giving credit (discussion points) is important and will definitely do so.
Steven Parker221,292 Points
nav has the class "wrapper", which sets the max-width to 768 pixels. If you remove that setting, it will expand across the header.
Also, there appears to e only one
ul inside the
nav, not two. So the entire
ul becomes the right-most item of the flexbox.