About

Labels

slider

Recent

Navigation

How to highlight the first cell of table as heading in HTML using CSS3?


Neither HTML table have any default property of highlighting first cells of each column nor CSS. For this we use :first-child, it is a pseudo selector of CSS3. We will use it like this one:
table tr:first-child td{
  color:#00bfff;

DEMO 

See the Pen sJvfk by Mohammad Hamza Dhamiya (@hamzadhamiya) on CodePen.
Share
Banner

Muhammad Hamza

Themelet provides the best in market today. We work hard to make the clean, modern and SEO friendly blogger templates.

Post A Comment:

0 comments: