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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -