some ie5 weirdness to chew on...
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).