HTML table first row color change using CSS
HTML table defines the first color using CSS. You can do it using first-child in your page style tag and give a color or background color.
I will provide some code that will be helpful for you to change table first tr td color or background color. You need to set table class name for call table row, which row you want to change color from default color.
For example:
<style type="text/css"> .table_class tr:first-child td{ color:#00006d; background-color: #b1a0a0; } </style>
Put this style CSS code in the header option fo HTML page. Here .table_class is the table class name. Use this class name in the table tag. for example:
<table calss="table_class"> <tr> <td> </td> </tr> </table>
If this code does not work, so set !important after attribute value. That’s like:
<style type="text/css"> .table_class tr:first-child td{ color:#00006d !important; background-color: #b1a0a0 !important; } </style>
Click Here: To Get Code of Password Strength Validation Using JQuery
Click Here: To Get Code of Email Address Validation Using jQuery
Related posts