Need some assistance with a CSS layout

Discussion in 'Web Design and Development' started by torndownunit, Mar 5, 2009.

  1. torndownunit macrumors regular

    Joined:
    Jan 4, 2009
    #1
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Just basing this off looking at the page you could add a div around all of it and give that div your fixed width and center it. Haven't tried it though to know if anything else may cause an issue.
     
  3. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #3
    Yes, create a div that will hold all the content of the page, as a container ... give it auto left and right margins and everything will be centered.
     
  4. design-is macrumors 65816

    design-is

    Joined:
    Oct 17, 2007
    Location:
    London / U.K.
    #4
    Could just...

    HTML:
    body {width:960px;
          margin:0 auto;
         }
    ...surely?

    Substitute 960px with the width you want.
     

Share This Page