HighDots Forums  

Table Padding & CSS

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Table Padding & CSS in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dana
 
Posts: n/a

Default Table Padding & CSS - 08-05-2003 , 07:27 PM






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

And here is the ID I am using in my css to unpad that table:

}
#formtable {padding: 0px;}


Why isn't this working? :-(

thanks for any help!
-Dana



Reply With Quote
  #2  
Old   
Michael Fesser
 
Posts: n/a

Default Re: Table Padding & CSS - 08-05-2003 , 07:55 PM






Dana wrote:

Quote:
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


Reply With Quote
  #3  
Old   
trx
 
Posts: n/a

Default Re: Table Padding & CSS - 08-05-2003 , 08:27 PM



Dana wrote:

Quote:
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


Reply With Quote
  #4  
Old   
Dana E.
 
Posts: n/a

Default Re: Table Padding & CSS - 08-06-2003 , 05:50 AM



Thank you both! Worked perfectly :-)
-Dana

"trx" <jimpm (AT) rmthscfw (DOT) com> wrote

Quote:
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



Reply With Quote
  #5  
Old   
Paul Taylor
 
Posts: n/a

Default Re: Table Padding & CSS - 08-06-2003 , 11:59 AM



On Wed, 06 Aug 2003 02:55:37 +0200, Michael Fesser <netizen (AT) gmx (DOT) net>
wrote:

Quote:
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
I'm finding your posts on CSS to be extremely helpful and
illuminating, Micha. There's some advanced stuff here, simply
explained. Have you written a tutorial on it? If not, can we persuade
you to do so?


Paul Taylor


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.