|
| |
|
|
BeTheBall
Posts: 6381 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
padding element - 3/6/2006 11:07:40
Is there a way to set the padding for the cells in a table at the table level rather than at the cell level? What I mean is I would rather not have to add a class to every cell in this particular table. I was hoping I could define the padding in the class I assign to the table and have that cascade down to the individual cells.
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
Tailslide
Posts: 6272 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: padding element - 3/6/2006 11:27:04
Hi Duane If you're including several tables on a page and only want the padding to apply to one particular table then assign it a specific id then add the following into your stylesheet or the head of your document: #yourtable td {padding:10px;} If you want it to apply to all tds on the page then just take out the specific id
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
BeTheBall
Posts: 6381 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: padding element - 3/6/2006 11:35:46
Thanks Helena. You have shed some much needed light. I have approx. 50 tables, although only two display at any given time. I want the cellpadding set at a certain value for all but one. I was trying to come up with something for the 49. Looks like the wiser path is to set universal values for the 49 and then give an ID to the 50th and set it's values as you have suggested. Thanks for the help.
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|