I have a table with 61 rows and 4 columns. Names, email, phone,
> affiliation.
>
> I want to have a solid 1px bottom border for each row. But I am not
> smart enough with CSS to figure out how to do this without giving a
> class to each TD (there are 244 of them) And I want there to be about
> 8px of margin underneath that border, or before the next person's
> name.
>
> How could I do this? I just want a bottom border. I've tried giving
> the <tr> a class that has a border-bottom assigned to it, but haven't
> been able to make it work.[/color]
If you want all the cells to have the same style, you *don't* need to give a
class to each! Suppose you give a class to the table:
<table class="someclass">
Now you can give properties to all the cells, for example:
table.someclass td { border-bottom: 1px solid red; }
This is a "decendent" or "contextual" selector, and it applies to all <td>s
found within the context of a table with the "someclass" class. It will
automatically apply to all 244 of them.
There are various ways of making space. For example, you may try:
table.someclass td { padding-bottom: 8px; }
This sort of selector is mind-blowingly powerful. Experiment, and find how to
achieve far-reaching effects with minimum impact on the HTML.
______________________________________________
child support and unemployed wedding venues wales