text-align vs align

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I am curious about using align="right" vs style="text-align:right".

I have set up styles to left justify my <td> tags (because of a problem with
having to using loose.dtd).

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


Why is that?

I had used style="vertical-align:top" before and was mentioned that it would
be better to use the valign=top.

What is the difference here?



Re: text-align vs align

tshad wrote:

Quoted text here. Click to load it

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

Site Timeline