header,nav bar 100% length

Discussion in 'Web Design' started by josip81b, Jan 9, 2010.

to remove all ads.
  1. josip81b

    josip81b New Member

    Messages:
    3
    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
     
  2. zkiller

    zkiller Super Moderator Staff Member

    Messages:
    1,639
    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.
     
  3. josip81b

    josip81b New Member

    Messages:
    3
    ok, thanks
     
  4. PixelPusher

    PixelPusher Super Moderator Staff Member

    Messages:
    1,077
    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.
     
  5. josip81b

    josip81b New Member

    Messages:
    3
    Thanks man. i am very begginer, so advices are precious to me
     
  6. PixelPusher

    PixelPusher Super Moderator Staff Member

    Messages:
    1,077
    Your welcome
     

Share This Page