SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    some ie5 weirdness to chew on...

    Hi,

    There are several ways to center a box in ie 5... but it appears that standard methods and workarounds do not work in the following example...

    I tried the following:

    - margins fixed in px (this I would really prefer) - ie5 draws the box from the center. example: http://home.wanadoo.nl/renebraakman/pages/test1.html

    - both margins auto, width in % - Works ok normally, but not in my case... example: http://home.wanadoo.nl/renebraakman/pages/test2.html

    - 'position: relative' omitted - box centers, but does not accept my negative top positioning

    Here's the problem, I have another box floating in the left. Now, my left margin is bigger than the right when I use automargins.

    Am I overlooking something? Does anybody know why ie5 draws the box from the center when using fixed margins? Is there a workaround for that?

    Otherwise, does anybody have an idea why the box is not centered when using automargins?

    All examples work in mozilla, ie5:mac and ie6 (did not check automargins).

    Thanks!

    Rene Braakman
    http://home.wanadoo.nl/renebraakman/

  2. #2
    SitePoint Enthusiast Utopia's Avatar
    Join Date
    Sep 2002
    Location
    United Kingdom
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile

    This may or may not help you, but my favourite reference point for CSS is http://www.web-building.com/coding_css.php3

    There is a sub-section down the page which has various work-arounds on it, whether the issue you're faced with is one of them, is another thing.


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
  •