Results 1 to 2 of 2

Thread: IE6 Centering Problem

  1. #1
    Join Date
    Aug 2005
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default IE6 Centering Problem

    I have this site centered in every browser except IE6 and I can't figure out what the issue is. Except for a IE7 hack, everything is W3 compliant. Any thoughts? Help!

    Check out the site I am talking about here:
    http://current-post.com/refractive/index.html

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    You can force an element with ID="bla" to center itself by doing this (assuming that it has, for instance, width:400px; height: 400px):
    Code:
    <style type="text/css">
    #bla {position: absolute; top:50%; left: 50%; width: 400px; height: 400px; margin-left: -200px; margin-top: -200px};
    </style>
    (Only apply this when there's a problem).
    ===
    Arie Molendijk.

Bookmarks

Posting Permissions

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