navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

padding element

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> padding element
Page: [1]
 
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

(in reply to BeTheBall)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: padding element - 3/6/2006 11:29:05   
Maybe a CSS style like this:

<style type="text/css">
TD
{
padding: 5px;
}
</style>

EDIT: I type too slow. :)

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to BeTheBall)
Tailslide

 

Posts: 6272
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: padding element - 3/6/2006 11:34:28   
quote:

ORIGINAL: rdouglass

EDIT: I type too slow. :)


Don't feel bad - it's your age :)

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to rdouglass)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: padding element - 3/6/2006 11:35:35   
quote:

it's your age


:) :)

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to Tailslide)
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.

(in reply to Tailslide)
Tailslide

 

Posts: 6272
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: padding element - 3/6/2006 11:51:30   
quote:

ORIGINAL: rdouglass

quote:

it's your age


:) :)


Sorry Roger - I've had rather too many ibuprofen recently so I don't really know what I'm saying!

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to rdouglass)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> padding element
Page: [1]
Jump to: 1





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