Center In IE

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Center In IE

Post 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.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

Have you tried text-align:centre on the parent element and/or margin:0 auto; on the element itself?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

yes I now have, no no avail

Anything else?
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

got it, if you give it a height and width then it explodes
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post 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)
Post Reply