I have an HTML table with large number of rows, and I need to right align one column.
I know the following ways,
..
-
The current draft of CSS Selectors Level 4 specifies structural selectors for grids. If implemented, we will be able to do things like:
th.price,
th.price || td {
text-align: right;
}
Of course, that doesn't help us today -- the other answers here offer enough practical advice for that.
- 热议问题