Thursday, 15 April 2010

change color of hyperlink in alternate rows of table CSS -



change color of hyperlink in alternate rows of table CSS -

i have changed color of alternate rows of table using next css:

tr:nth-child(odd) { background-color:#dedede; color: black; } tr:nth-child(even) { background-color:none; }

but want alter color of hyperlinks in alternate rows using css. tried alter color using

tr:nth-child(odd) a{ background-color:#dedede; color: black; } tr:nth-child(even) a{ background-color:none; }

but doesn't works me

please help in advance

it's working fine dear seek :

tr:nth-child(odd) a{ background-color:#dedede; color: #996633; } tr:nth-child(even) a{ background-color:none; color : #ff0000}

css table

No comments:

Post a Comment