SunQuest
           CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 29th, 2002, 05:33 PM
plazz2000 plazz2000 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 9 plazz2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Whats the CSS equivalent of "cellspacing"

I had this table on my site:
Code:
<table border=0 width=750 cellpadding=0 cellspacing=0">
I want to change it to CSS:
Code:
<table class="maintable">
I'm using
Code:
border: 0;
width: 750px;
in my CSS file, what must I do to get the cellpadding and spacing to zero?

Reply With Quote
  #2  
Old July 29th, 2002, 05:57 PM
Tundra's Avatar
Tundra Tundra is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Honolulu, Hawaii
Posts: 247 Tundra User rank is Corporal (100 - 500 Reputation Level)Tundra User rank is Corporal (100 - 500 Reputation Level)Tundra User rank is Corporal (100 - 500 Reputation Level)Tundra User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 3 h 48 m 39 sec
Reputation Power: 9
Send a message via AIM to Tundra
MySpace
CSS2 Has a table property called border-spacing which is the equivalent of the table attribute cellspacing. There's just one itty bitty problem: None of the major browers supports this property. That doesn't mean it won't work, it might, I haven't tried it but, I've seen things work in IE that weren't supposed to.

for more info:
http://www.w3schools.com/css/css_reference.asp#table

Last edited by Tundra : July 29th, 2002 at 06:00 PM.

Reply With Quote
  #3  
Old July 29th, 2002, 06:32 PM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
for cellpadding it's:

padding:

you can also control the four sides individually with:


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

=============
justin_dago
=============

Reply With Quote
  #4  
Old July 29th, 2002, 07:32 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 10
People love to argue about this kind of thing...

http://www.evolt.org/article/CSS_Ta...rward/17/17798/

Reply With Quote
  #5  
Old July 30th, 2002, 12:43 PM
Tundra's Avatar
Tundra Tundra is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Honolulu, Hawaii
Posts: 247 Tundra User rank is Corporal (100 - 500 Reputation Level)Tundra User rank is Corporal (100 - 500 Reputation Level)Tundra User rank is Corporal (100 - 500 Reputation Level)Tundra User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 3 h 48 m 39 sec
Reputation Power: 9
Send a message via AIM to Tundra
MySpace
Yeah, the general rule is, it doesn't work everywhere. So don't count on it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Whats the CSS equivalent of "cellspacing"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway