Orientation of a specific column in a table

I have a players class table with 5 columns and 40 rows. I want to make a second column width: 200px .

I cannot figure out how to select a specific column in a table. So far I have narrowed it down to this, but this is done for all rows in the table. Can someone help me set the column width for a specific column?

 table.players td { } 
+6
source share
1 answer

This should work (with the exception of IE8 and below):

 table.players td:nth-child(2) { width: 200px; } 
+12
source

Source: https://habr.com/ru/post/919463/


All Articles