Previous Message
Next Message

[css-d] Combining shorthand AND contextual selectors - possible?

Sent by Martin Sammtleben on 2 July 2002 17:05


Hi listees,

I was wondering whether it's possible to combine the use of a 
shorthand AND contextual selectors. What I had in mind was something 
like this:

h1, h2, h3 a  { color: #9c0; text-decoration: none }  (and so forth 
for a:link, a:visited etc.)

In general I want my links underlined with the exception of those 
residing in any heading.  Initial tests seem to indicate that it does 
not work however I want to make sure it's really impossible before I 
add yet another 15 lines of selectors to my CSS.

If anyone knows for sure or has a better idea, please let me know.


By the way my style sheets are growing fairly large because of all 
those contextual selectors to refine different link styles - how do 
you people handle this?



Cheers   Martin
Previous Message
Next Message

Message thread: