Page 1 of 1

Center In IE

Posted: Mon Dec 04, 2006 3:36 pm
by shiznatix
I have been trying to center this thing for forever now and it just wont go in IE. Here is the page:

http://mathewjewelers.com/new/Designers.php

The contents of that 1 cell in the middle wont center in the cell. I have tried every center tag I can think of without avail and this only happens in IE.

Posted: Tue Dec 05, 2006 2:38 am
by matthijs
Have you tried text-align:centre on the parent element and/or margin:0 auto; on the element itself?

Posted: Tue Dec 05, 2006 8:25 am
by shiznatix
yes I now have, no no avail

Anything else?

Posted: Tue Dec 05, 2006 8:31 am
by shiznatix
got it, if you give it a height and width then it explodes

Posted: Tue Dec 05, 2006 11:01 am
by matthijs
Interesting. Which table / td exactly did you give a width/height?

It's well known that IE bugs can often be solved by giving an element a certain height or width. Has to do with "having layout" (very good article: http://www.satzansatz.de/cssd/onhavinglayout.html)