Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Fixed positioning, fluid max-width container, centred site. Question about css and best practises. Re: Fixed positioning, fluid max-width container, centred site. Question about css and best practises.

#106408
Paulie_D
Member

The second option is the best solution but my first question is why are you using fixed positioning at all?

If your header is at the top of the page you don’t need to position it.

Having said that, you don’t need to set a fixed width for the header…just set it to 100% and it will scale automagically.

http://codepen.io/anon/pen/udpBf