Reputation: 53916
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
Reputation: 14225
If no other styles affect the table your code should work. http://jsfiddle.net/MS4Qm/
Upvotes: 1
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 tr
s
table.myline tr{border-bottom:1px solid gray;}
Upvotes: 11