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 January 7th, 2004, 07:52 AM
riotx's Avatar
riotx riotx is offline
Off-topic
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Nov 2003
Location: Geneva / Genève / Genf / Ginevra
Posts: 1,501 riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)riotx User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 3 Days 21 h 19 m 18 sec
Reputation Power: 502
CSS in tables and how to!

Hi everyone,

Dont actually know if this is possible (my css knowledge is way not what it should be!)

Can I define a whole set of attriblutes for a table (fonts, links, hover links etc etc) and than just use it with

<table class = "whatever"> etc

and then that table will have all the properties I defined (for only that table, not for the rest of the page)

if so how could I go about doing that.

Any help is very appreciated!

cheers

Reply With Quote
  #2  
Old January 7th, 2004, 08:55 AM
vaaaska vaaaska is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 178 vaaaska User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 38 m 4 sec
Reputation Power: 6
yes but really no...you can't apply a style to something unless you...

A) apply a style OR
B) style a tag

B for instance could be

td (
stylestuffhere
}

and anything inside of td would have that style...so, you would stil need to apply a style unless you use you td tags for ONLY what you need...you'll still probably need...

td class='stylee' or A

i think what you had in mind was something like this...

table.styleee tr.styleee td.styleee { }

but this is really the same thing as A...

good luck...v

Reply With Quote
  #3  
Old January 7th, 2004, 09:51 AM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,688 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 4 Weeks 7 h 3 m 59 sec
Reputation Power: 600
its possible

<table class="test">

css

.test {
/*style for the table*/

}

.test td {
/*style for the td within the table test */
}

.test a{
/*style for the link within the table test */
}

etc.
vaaske you don't need to put classes on every td, just use the cascading in css

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS in tables and how to!


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 3 hosted by Hostway
Stay green...Green IT