Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-07-2002, 01:12 AM   PM User | #1
BroChris
Regular Coder

 
Join Date: Jun 2002
Location: Louisville, KY
Posts: 279
Thanks: 0
Thanked 0 Times in 0 Posts
BroChris is an unknown quantity at this point
css and tables

I'm trying to use as much css as possible. What attributes can css define for tables? Can it specify cellspacing & cellpadding? How about align & valign? Anything else essential that I'm forgetting?
BroChris is offline   Reply With Quote
Old 07-07-2002, 01:49 AM   PM User | #2
pardicity3
Regular Coder

 
Join Date: Jun 2002
Location: Iowa / Notre Dame
Posts: 538
Thanks: 0
Thanked 0 Times in 0 Posts
pardicity3 is an unknown quantity at this point
There are a ton of attributes you can define for tables in css. I will name all that I can think of at the time:

padding -

padding:, padding-left:, padding-right:, padding-top:, padding-bottom:

border -

border:, border-color:, border-left:, border-right:, border-top:, border-bottom:, border-left-width:, border-right-width:,border-top-width:, border-bottom-width:, border-width:,

align -

vertical-align:, (<--I think that works, not positive though!)

So those are all the CSS attributes for tables that I can think of at the time. Good luck though. You can also try searching the web for something like "CSS tips" or "CSS attributes."
__________________
My Site {Mike's Adventures}

Yikes, forums are almost too much fun.
pardicity3 is offline   Reply With Quote
Old 07-07-2002, 01:55 AM   PM User | #3
BroChris
Regular Coder

 
Join Date: Jun 2002
Location: Louisville, KY
Posts: 279
Thanks: 0
Thanked 0 Times in 0 Posts
BroChris is an unknown quantity at this point
Thanks for the reply, but I already knew about those since they are common to many different css elements (does align work? I tried align: center and I never got it to work). Are there any table-specific css attributes?
BroChris is offline   Reply With Quote
Old 07-07-2002, 09:51 AM   PM User | #4
Gordo
Regular Coder

 
Join Date: Jun 2002
Location: TEXAS . . . 'nuf said
Posts: 468
Thanks: 0
Thanked 0 Times in 0 Posts
Gordo is an unknown quantity at this point
Have you searched the web for this yet? Many hits will result.

Anyway, I've gone back to this list quite a few times:
http://www.webreview.com/style/css1/...stergrid.shtml
__________________
Gordo
"In the End, we will remember not the words of our enemies, but the silence of our friends."
- Martin Luther King Jr. (1929-1968)
Gordo is offline   Reply With Quote
Old 07-07-2002, 02:07 PM   PM User | #5
BroChris
Regular Coder

 
Join Date: Jun 2002
Location: Louisville, KY
Posts: 279
Thanks: 0
Thanked 0 Times in 0 Posts
BroChris is an unknown quantity at this point
Yeah, I've done some searching. That link is helpful, Gordo, I bookmarked it

I still can't figure out if cellspacing & cellpadding can be set with css.
BroChris is offline   Reply With Quote
Old 07-07-2002, 05:39 PM   PM User | #6
WarGiant
New Coder

 
Join Date: Jul 2002
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
WarGiant is an unknown quantity at this point
padding can be done.

padding, padding-left, padding-right, padding-top, padding-bottom
__________________
The distance between insanity and genius is measured only by success!
WarGiant is offline   Reply With Quote
Old 07-07-2002, 09:24 PM   PM User | #7
BrainJar
Regular Coder

 
Join Date: Jun 2002
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
BrainJar is an unknown quantity at this point
The W3C covers tables and CSS pretty well at http://www.w3.org/TR/REC-CSS2/tables.html

Not all browsers support all properties. Gordo's link can help you with that.
BrainJar is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

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

Forum Jump


All times are GMT +1. The time now is 06:30 AM.


Advertisement
Log in to turn off these ads.