blue-sky
blue-sky

Reputation: 53916

Css code not working

Im trying to add a line between each row in a table but its not working. Lines are not being displayed.

Here is my html -

<tr class="myline">

Here is my css -

.myline TR {border-bottom:1px solid gray}

Thanks

Upvotes: 0

Views: 168

Answers (2)

gearsdigital
gearsdigital

Reputation: 14225

If no other styles affect the table your code should work. http://jsfiddle.net/MS4Qm/

Upvotes: 1

JCOC611
JCOC611

Reputation: 19759

your css references a TR child of .myline, do this:

tr.myline{border-bottom:1px solid gray;}

or even better, applying the class to the table not the trs

table.myline tr{border-bottom:1px solid gray;}

Upvotes: 11

Related Questions