I have two columns in a table. Without explicitely specifying a column width, I want to allow a bit of space between the left column and the right. I know I can do this by setting the padding-right style on each left cell, but is there some way to just specify it once so it applies to all cellsin that column? I don't want to add a "spacer" column, because then the html is no longer reflecting the actual data.
+1
A:
Use the first-child
css selector:
td:first-child {right-padding:20px;}
This will select the first td
in each row.
recursive
2010-01-19 19:34:18