Paulie, application-wise, tables are centered, which is good but for one particular page, I’d like all the Tables to be left-aligned and to be displayed vertically, not next to one another. Ok, silly me with CSS, it’s simple, just use left-align:10px; right-align:auto solves the problem.
P.S. Of course the left-align value can be 0 etc…
Please pay no attention to .example-block, I simply used that for illustrative purposes.
First, I’m not using tables.
Second, I’m relying on defaults to be defaults (text is left-aligned by default).
Third, with the inclusion of one simple class I can center text in any block-level element.
Of course, this is a simplistic example, but if you take it to the logical conclusion, you’ll see that using tables for layout is not only bad practice, it’s wasting your time unnecessarily by making an impossible to update code base.
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".