header,nav bar 100% length

josip81b

New Member
How can i make header and navigation bar 100% length, and all other content fixed size. I usualy put everything in wrapper, but i heard that its not good to put header and nav bar outside wrapper? Thanks
 

zkiller

Super Moderator
Staff member
Just create two containers. One for the header and one for everything else. There is no rule stating that everything must be contained within the same object.
 

PixelPusher

Super Moderator
Staff member
No need to even "wrap" your header or navigation. Many times people overuse tags. Just use a div tag for the header and a list (UL) for the navigation. By default, a div will expand to the edge of the browser window unless a width is specified. Then set the UL to a 100% width. That should do it for you.
 
Top