#How do i get my navbar to stretch fully even after configuring my max-width to 50em in my body.

3 messages · Page 1 of 1 (latest)

hollow kiln
#

I want my content to be focused on the center throughout, but i also want my navbar to be fully stretched and not have to obey the 50em instruction in my body tag in CSS

naive wyvern
#

hi. you would approach this by not applying the max-width property to the body element, but instead by creating a container for the content following your nav bar (whether it be a div or a semantic element like <main>), and then applying your max-width property to that container.

hope that helps and you can always drop your code if you need an explanation more specific to your project 🙂

hollow kiln
#

that works fine