Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    85
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Centering a site Vertically and Horizontally

    A well documented problem I know...

    I have a site that is designed for 1024 X 768 viewport, with the css negative margin technique to center it in the middle of the page, which is excellent for all viewports @ 1024 x 768 and higher.

    As soon as you view the site in lower resolutions, the top of the site starts to get chopped off, and this gets more and more severe the lower the resolution....not an ideal solution...

    I am sorely tempted to go back to the old centering table technique.

    How do you center a site vertically and horizontally for 1024 X 768 and higher without sacrificing the top of the page for lower resolutions?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,635
    Thanks
    6
    Thanked 1,003 Times in 976 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •