![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi - I am having a CSS issue. I am not a CSS expert and am scratching my head on this. My tables in my site are padded, but the table holding the contact form I do not want padded. Here is the page with the form: http://users.adelphia.net/~evanslyme/contact_dana.htm |
#3
| |||
| |||
|
|
And here is the ID I am using in my css to unpad that table: } #formtable {padding: 0px;} Why isn't this working? :-( |
#4
| |||
| |||
|
|
Dana wrote: And here is the ID I am using in my css to unpad that table: } #formtable {padding: 0px;} Why isn't this working? :-( Try #formtable td {padding: 0px;} -- trx |
#5
| |||
| |||
|
|
Dana wrote: Hi - I am having a CSS issue. I am not a CSS expert and am scratching my head on this. My tables in my site are padded, but the table holding the contact form I do not want padded. Here is the page with the form: http://users.adelphia.net/~evanslyme/contact_dana.htm The selector '#mainTable td' is more specific than '#formtable' and overrides it. Just write: #formtable td {padding: 0} or #formtable td {padding: 0 5px;} if you want at least a little space between the labels and the input lines. See also 6.4.3 Calculating a selector's specificity http://www.w3.org/TR/REC-CSS2/cascade.html#specificity Micha |
![]() |
| Thread Tools | |
| Display Modes | |
| |