html - How to style each table cell in a column via CSS? -
i have ordinary html table:
<table> <tr> <td class="first-column-style">fat</td> <td>...</td> </tr> <tr> <td class="first-column-style">fat</td> <td>...</td> </tr> </table>
i want apply css style every table cell (td
) in particular column. possible without applying class
/style
attribute every table cell in column, , without javascript?
use <col>
tag , style following this guide. way need add class (or inline style specification) <col>
element instead of each <td>
in table.
Comments
Post a Comment