Correct Semantic Use Of Css Properties
Solution 1:
No. CSS is purely presentational. Some of the properties are just poorly named (text-align being a prime example, it is designed to align all inline children).
Solution 2:
It is perfectly fine, to use text-align
in table cells, that just styling the table as you should be doing. If you want to. Just do it in CSS. Do not use align="right"
.
https://developer.mozilla.org/en/CSS/text-align Says it applies to: block level elements, table cells and inline-blocks. So it is a use that is documented and intended. If you have inline content use this property to style its alignment.
http://www.w3.org/TR/CSS21/text.html#propdef-text-align Also states
This property describes how inline-level content of a block container is aligned.
So it is not just text, but all inline content.
Post a Comment for "Correct Semantic Use Of Css Properties"