![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
created a class style with 10px pad on right side only & vertical alignment to top. i want to apply this class to a table row-- but when i do-- i get correct vertical alignment-- but no pad. if i apply the same class style to each td cell-- then both alignment and pad work. am i making some silly mistake? there are 40 td cells in the row-- so it would be faster just to apply class to entire row. any ideas what i'm doing wrong? much thanks in advance. |
#4
| |||
| |||
|
|
created a class style with 10px pad on right side only & vertical alignment to top. i want to apply this class to a table row-- but when i do-- i get correct vertical alignment-- but no pad. if i apply the same class style to each td cell-- then both alignment and pad work. am i making some silly mistake? there are 40 td cells in the row-- so it would be faster just to apply class to entire row. any ideas what i'm doing wrong? much thanks in advance. |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
[q]And by the way, the best way to do this would be as follows, using a descendent selector. STYLE SHEET .padThis td { vertical-align:top; padding:10px; } HTML DOCUMENT tr class="padThis" td>blah, blah, blah</td td>blah, blah, blah</td td>blah, blah, blah</td /tr Now, all the <td> tags within that <tr> will have the padding and alignment you want.[/q] Very Nifty. Roddy |
![]() |
| Thread Tools | |
| Display Modes | |
| |