Posted by David Dorward on 11/13/59 11:19
tshad wrote:
> I have some <td> tags that I need to right justify and I assume that
> align=right on specific tags would override the style. The problem was it
> didn't. I did find that using style="text-align:right" would override the
> style.
See http://www.w3.org/TR/CSS21/cascade.html#q13
"The UA may choose to honor presentational attributes in an HTML source
document. If so, these attributes are translated to the corresponding CSS
rules with specificity equal to 0, and are treated as if they were inserted
at the start of the author style sheet. They may therefore be overridden by
subsequent style sheet rules."
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Navigation:
[Reply to this message]
|