Style the first column of a table differently

后端 未结 5 713
清歌不尽
清歌不尽 2020-12-25 09:19

If I have a table with two columns, how do I specify a padding or any other css so that it is applied just for the first column of

5条回答
  •  一向
    一向 (楼主)
    2020-12-25 09:53

    This should help. Its CSS3 :first-child where you should say that the first tr of the table you would like to style. http://reference.sitepoint.com/css/pseudoclass-firstchild

提交回复
热议问题