tips and tricks for movable type
IE6 table centering bug
September 18, 2002
One day, I viewed my blog from work - where I have IE6 - and found that all my table content was centered! I found the solution at evolt.org - eliminate the URI portion of the doctype declaration.
So I did!
Instead of:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Use this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Comments
I think I have to agree with some of the people who commented on the evolt article in that throwing the browser into quirks mode is not the best thing one can do overall. A couple of different solutions were suggested in those comments; you might want to evaluate them as an alternative to what you've done.
Good point! I'll check them out - at the time, I was just looking for the quickest fix possible since I was so annoyed by the centering. =)