Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    18
    Member #
    15547
    I am building a site entirely in CSS-P so I'm not using tables (though if I do have to use a table or two I am not oppose to it).

    Anyhow I obviously know how to make the site center horizontally using the text-align: center; CSS command but I can't figure out for the life of me how I would go about making the page container div that contains the entire page center vertically on someones browser. Any idea how I would go about doing this?

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    It would be best if we saw your site (provide a link) ...

    Typically, you define the body width and use a content <div> ....

    html, body{
    width:800px;
    margin:0px auto;
    text-align:center;
    }

    #content{
    width:800px;
    }

    Then have this type of structure ...

    <body>
    <div id="content">
    .
    .
    content
    .
    .
    </div>
    </body>



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:38 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com