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 September 17th, 2003, 11:37 AM
mickeyren mickeyren is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 158 mickeyren User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 25 m 11 sec
Reputation Power: 6
Send a message via ICQ to mickeyren Send a message via MSN to mickeyren Send a message via Yahoo to mickeyren
how do you create this in css?

hi,

this are the attributes on one of my table:

border="1" cellpadding="5" cellspacing="0" bordercolor="#EBEEF3"

i need the cells to have borders, the table to have space between cells.

i cannot create the style on a td because i use td on other instances where i don't need the space between the cells.

many thanks.
__________________
http://www.insightsws.com/
Professional low cost offshore website design and development.

Reply With Quote
  #2  
Old September 17th, 2003, 11:52 AM
Clone53421's Avatar
Clone53421 Clone53421 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 689 Clone53421 User rank is Private First Class (20 - 50 Reputation Level)Clone53421 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 7 m 56 sec
Reputation Power: 6
Send a message via AIM to Clone53421
Are the 'other instances' on a different table or on the same table? If they are on the same table, try TBODY.

Reply With Quote
  #3  
Old September 17th, 2003, 08:48 PM
mickeyren mickeyren is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 158 mickeyren User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 25 m 11 sec
Reputation Power: 6
Send a message via ICQ to mickeyren Send a message via MSN to mickeyren Send a message via Yahoo to mickeyren
other instances would be on other tables.

for instance, navigational panel which consists of images tabs are place in tables. it would destroy the layoutif it would also be affected by the padded.

Reply With Quote
  #4  
Old September 18th, 2003, 11:11 AM
Clone53421's Avatar
Clone53421 Clone53421 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 689 Clone53421 User rank is Private First Class (20 - 50 Reputation Level)Clone53421 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 7 m 56 sec
Reputation Power: 6
Send a message via AIM to Clone53421
Just put those attributes in the table tag... it would only affect the table you put them in. Will that work, or do you want to do it with CSS? I do not know the corresponding CSS styles, but you could use a named style:
Code:
<style>
.namedstyle {
  put style definitions here...
}
</style>

<table class="namedstyle">
...
</table>

The named style will only be used for tables of class "namedstyle". Obviously you can and should change that to be something more descriptive of what you are doing...

Reply With Quote
  #5  
Old September 18th, 2003, 08:31 PM
mickeyren mickeyren is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 158 mickeyren User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 25 m 11 sec
Reputation Power: 6
Send a message via ICQ to mickeyren Send a message via MSN to mickeyren Send a message via Yahoo to mickeyren
hi,

that doesn't work.

Reply With Quote
  #6  
Old September 19th, 2003, 12:29 AM
Phil_work Phil_work is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Canberra, Australia
Posts: 317 Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level)Phil_work User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 19 h 42 m 18 sec
Reputation Power: 7
try moving the class to the td or tr

for example:

td class="

tr class="

Reply With Quote
  #7  
Old September 19th, 2003, 05:12 AM
LoneArcher's Avatar
LoneArcher LoneArcher is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: FL
Posts: 226 LoneArcher User rank is Corporal (100 - 500 Reputation Level)LoneArcher User rank is Corporal (100 - 500 Reputation Level)LoneArcher User rank is Corporal (100 - 500 Reputation Level)LoneArcher User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 11 h 19 m 49 sec
Reputation Power: 8
Send a message via AIM to LoneArcher
PHP Code:
<style type="text/css">
td {
padding5px;
border#EBEEF3 solid medium}
</style


That works for everything but the cellspacing, i have no idea how to space in CSS. What you can do, it go and put that in your head tags, and just put the cell spacing in your table tags,

hope that helps,
--Lone~
__________________
"A building has integrity just like a man. And just as seldom."
Rand

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > how do you create this in css?


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 4 hosted by Hostway