Whenever I set my max-width to 1200, and preview the website- everything seems to be aligned to the left. I’ve tried aligning it to center but it only works when I get rid of the max-width. If you see the right side of the nav bar- there is some white space. How do I fix that?
Great I missed that! Is there a way to extend the background color of the navbar all the way to the corners while keeping the menu items centered with a max width of 1200?
You’ll notice it while scrolling down to the white background, the nav bar cuts off from the sides.
Yeah there is, instead of giving the nav bar the max width give it to the container (you deleted that one) but you can add it again.
Containers don’t let you modify their width but the way to do this is insert a div block and assign it a class called container, give that div block a max with of 1200 and then erase the div. Now select the element container and assign it the class “container” and the container automatically going to grow to that max width.