News

[Discuss] CSS wizard wanted

Tom Vogt tom at lemuria.org
Thu Nov 30 23:07:24 CET 2006


There is one specific CSS problem I have:

I have long lists of CSS that looks like this:

.Navigation #Basics {
    background-image:url("/common/B-Basics.png");
}
.Navigation #Manual {
    background-image:url("/common/B-Manual.png");
}
.Navigation #News {
    background-image:url("/common/B-News.png");
}
.Navigation #Wiki {
    background-image:url("/common/B-Wiki.png");
}
.Navigation #Game {
    background-image:url("/common/B-Game.png");
}


and so on. Why, oh why, can I not write something like:

.Navigation #{$1} {
   background-imageg:url("/common/B-$1.png");
}


get what I mean? These all follow a simple and predictable syntax. Why 
do I have to write them all out? Isn't that what we have computers for?



-- 
Unsubscribing and other list options:
http://news.battlemaster.org/cgi-bin/mailman/listinfo/discuss


More information about the Discuss-moderated mailing list