Want to apply CSS for the first <td> column of a table

Submitted 3 years, 6 months ago
Ticket #211
Views 250
Language/Framework CSS
Priority Low
Status Closed

If I have a table with two columns, how do I specify any other css so that it is applied just for the first column of <td>s.

Please suggest a way to solve this....

Submitted on Oct 06, 20
add a comment

1 Answer

Verified

td:nth-child(n) {  
  /* your stuff here */
}

or

tbody>tr>:nth-child(your_parameter){ 
/* your css here */
}

Submitted 3 years, 6 months ago

thank you for the answer @Cheethirala

- Soudhamini 3 years, 6 months ago


Latest Blogs