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
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;}
<table class="myline"><tr><td></td></tr></table> (adding the class to the table instead of the TRs)myline. So <div><table class="myline"><tr><td>hey</td></tr></div>If no other styles affect the table your code should work. http://jsfiddle.net/MS4Qm/
tr nodes, not the table one as you are on the fiddle.myline2 class. In other words, remove the .myline2 and set the second table's classes to myline