News

[Discuss] Re: CSS wizard wanted

Samuel Knowlton sam at iamsam.org
Fri Dec 1 00:34:53 CET 2006


"Tom Vogt" <tom at lemuria.org> wrote in message 
news:mailman.3336.1164924445.2568.discuss at news.battlemaster.org...
> There is one specific CSS problem I have:
>
> I have long lists of CSS that looks like this:
>  (list...)

What you are trying to do is counter to what CSS is sort of 'there for' (at 
least, according to the detached nitwits at the W3C). You are using images 
as content (probably with a text-alternative, but still) and they would 
rather you did something like:

<ul class="Navigation">
    <li id="Basics"><a href="somelink.php" title="The Basics"><img 
src="/common/B-Basics.png" /></a>
    <li ...>
</ul>

As background-image was never intended to contain actual content. That's not 
to say that you're doing it 'wrong', but rather that the PHBs in charge of 
the spec would tell you that you're doing it wrong.

To further answer your question, CSS up to 2.1 does not support anything 
like the syntax you are looking for. CSS3 has some of this, but even then I 
think it's fairly limited. So you'd have to write PHP to spit out the 
sytlesheet for you.

-Sam (who spent too long as a WCAG accessibility consultant) 




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


More information about the Discuss-moderated mailing list