Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorohdavid
    • CommentTimeDec 29th 2006
     permalink
    I've been a frelance for a quite a few years. Have taken some courses on Dreamweaver but am running into a basic problem of trying to auto (Center) a site to any screen size using layers. How is this done?
    •  
      CommentAuthoradjustafresh
    • CommentTimeDec 29th 2006 edited
     permalink
    Put the content of your website into a container like so:

    <body>
    <div id="container">
    ...your website code and content
    </div> <!-- /container -->
    </body>

    Style the container div in your style sheet:

    #container {
    width: 960px;
    margin: 0 auto;
    }

    Be sure to change the width to apply to the width of your specific site. You may also use a percentage if you want a fluid layout. To get this working in older versions of IE, you will also need to add "text-align: center;" to the body element in your CSS.

    Good luck.
Add your comments
    Username Password
  • Format comments as (Help)