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 27th, 2004, 01:40 PM
DerekJ DerekJ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 DerekJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
css - link color in table

Hi

I have a css file stating the following:
A:link { color: #71828A }
A:visited { color: #71828A }
A:active { color: #71828A }

... of course this is applied to the whole page.
I would like to set different link colors inside table data:

#BottomTable TD
A:link { color: #CCCCCC }

... but this doesnt work! Any ideas, please?

Reply With Quote
  #2  
Old January 27th, 2004, 02:33 PM
MattSidesinger's Avatar
MattSidesinger MattSidesinger is offline
Java PHP Oracle Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: C-Bus OH-IO
Posts: 204 MattSidesinger User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 26 sec
Reputation Power: 5
Send a message via AIM to MattSidesinger
Contextual Style

From http://www.yourhtmlsource.com/style...dvancedcss.html

Contextual style is a powerful technique that can save you from having to define too many classes. You can have your stylesheet apply CSS rules to an element, depending on what other elements it is contained in. For instance, if I wanted all bold tags that are contained in paragraphs to be red, I could write:

p b {color: red; }

You just list the selectors (which can be tags, classes or ids) in descending order, with single spaces between them.

The following will work in your situation:

A:link { color: #71828A }
A:visited { color: #71828A }
A:active { color: #71828A }

td A:link { color: #CCCCCC }

Reply With Quote
  #3  
Old January 27th, 2004, 05:34 PM
DerekJ DerekJ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 DerekJ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanx for your help

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css - link color in table


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