CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 June 3rd, 2002, 12:44 PM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 8 m 16 sec
Reputation Power: 11
listing of all table-related css variables

where can i find a listing of all table-related css variables?

i'm not even sure if there are table-related css variables, but it would be nice to set cellspacing and cellpadding only once at the top of the html file.

thx,
__________________
Matthew Doucette / Xona.com

Reply With Quote
  #2  
Old June 3rd, 2002, 01:11 PM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 18
There are some specific Table attributes:
http://www.blooberry.com/indexdot/c...index/table.htm

but you can use attributes from other properties, e.g. Colour & Background, BOX, Text, Positioning.

http://builder.cnet.com/webbuilding....ref_l.bl_table
http://www.webreview.com/style/css1...astergrid.shtml

Reply With Quote
  #3  
Old June 3rd, 2002, 05:04 PM
Utopia's Avatar
Utopia Utopia is offline
superficial
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Location: Peterborough, England
Posts: 188 Utopia User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 36 m 8 sec
Reputation Power: 12
http://webref.info

select css from the left frame

find the tables section.
__________________
_______________
Matt

Reply With Quote
  #4  
Old June 5th, 2002, 08:21 AM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 8 m 16 sec
Reputation Power: 11
i'm having problems implementing multiple table css's. i can do it for just one table, like this:

<style>
TABLE
{
border: ffffff 1px solid;
FONT-SIZE: 8pt;
COLOR: ffffff;
FONT-FAMILY: verdana, arial, ms sans serif;
background-color: midnightblue;
}
TH
{
padding: 5px;
border-bottom: ffffff 1px solid;
background-color: darkblue;
}
TD
{
padding: 5px;
background-color: darkblue;
}
-->
</style>

but how do i make seperate table/th/td properties for use in another table?

i know it has something to do with classes (which i have implemented no problem for fonts) but i have no idea how to do it for tables.

Reply With Quote
  #5  
Old June 5th, 2002, 09:52 AM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 18
you can assingn a pseudo class to the CSS.

Code:
TD.red { background-color: red}


<td style="red">this is a table cell</td>


You could just use
Code:
.red { background-color: red}

but using TD.red means that you can use the name red for other styles aswell, such as TABLE.red, TH.red etc.

Reply With Quote
  #6  
Old June 5th, 2002, 09:59 AM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 8 m 16 sec
Reputation Power: 11
so your top example makes all TD's red (by default), and gives you the ability to use .red elsewhere.

and the bottom example makes nothing red, and gives you the ability to use .red elsewhere.

am i right?


so i can't make 2 classes, with each class having 'table', 'th', and 'td' properties all in the same class? in other words, i can't use code such as this: <table class="firstclass" ...> to define properties in 'th' and 'td' as well as 'table'?

Reply With Quote
  #7  
Old June 5th, 2002, 10:34 AM
degsy degsy is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2001
Posts: 1,882 degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level)degsy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 21 h 19 m 30 sec
Reputation Power: 18
TD {background-color: red}
This would effect all TD's.

TD.red {background-color: red}
Using TD.red is a specific class for TD's.
This will only effect TD's that are assigned the class.
e.g. <TD Style="red">



example
----------

<style>
TD {background-color: green}
TD.red {background-color: red}
TD.blue {background-color: blue}
</style>

<table>
<tr>
<td>This cell has no assigned style. It will default to Green</td>
<td style="red">This cell is red</td>
<td style="blue">This cell is blue</td>
</tr>
</table>

Last edited by degsy : June 5th, 2002 at 10:38 AM.

Reply With Quote
  #8  
Old June 5th, 2002, 11:12 AM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 10 h 8 m 16 sec
Reputation Power: 11
excellent, thanks for your help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > listing of all table-related css variables

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap