CSS Grid Help with header

CSS Grid Help with header
0.0 0

#1

Hello,

I am new to coding and working on a grid for a website. I have the header up but can’t figure out why it will not take the width of the page. I feel like I am missing something. Thank you for your help. :slight_smile:

https://codepen.io/TDRAIN/pen/bKWyYw?editors=1100


#2

Because you applied max-width: 900px to the .container and width: 900px to header


#3

If you set container’s and header’s width to 100%, then they will cover all the area up to the borders of the page. But you set them to 900px, as @Ujjwal1604 says.