|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
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 } |
|
#3
|
|||
|
|||
|
Thanx for your help
![]() |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > css - link color in table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|