Forum Moderators: open
<CAPTION align="left">
But it displays to the left of the table in Firefox.
Removing "align left" centres the caption at the top of the table, for both IE and Firefox.
Is there any way of having the caption displayed aligned left, at the top of the table, in both IE and Firefox?
[w3.org ]
Deprecated. For visual user agents, this attribute specifies the position of the caption with respect to the table. Possible values:* top: The caption is at the top of the table. This is the default value.
* bottom: The caption is at the bottom of the table.
* left: The caption is at the left of the table.
* right: The caption is at the right of the table.
Luckily we can easily achieve what you want using CSS. For example:
caption { text-align: left; } (as an aside, see the big deprecated in the above quote? This usually means that tere's a way to get the same effect using CSS alone instead of presentation HTML. And indeed this is true - the CSS caption-side property is a direct replacement for this. Not supported by IE, but then seeing as this original @align wasn't supported we're no worse off.)