Gidgidonihah Gidgidonihah - 4 months ago 8
CSS Question

Why would ie8 center text when the text-align is set to left?

Using ie8's own dev tools it shows the elements text-align value as left, but it is rendered centered in ie8 standards mode.
In quirks or ie7 standards, everything is correctly aligned left.

Screenshot of IE Developer tools illustrating the issue

Answer

A very elegant solution from haslayout.net:

th {
    text-align: inherit;
}
Comments