W3C home > Mailing lists > Public > www-style@w3.org > November 2005

RE: [CSS] Proposal: color:transparent

From: Simon Pieters <zcorpan@hotmail.com>
Date: Thu, 24 Nov 2005 19:05:38 +0000
Message-ID: <BAY109-F718718C0C370270051BF5B4540@phx.gbl>
To: manuel.strehl@stud.uni-regensburg.de
Cc: www-style@w3.org

Hi,

From: Manuel Strehl <manuel.strehl@stud.uni-regensburg.de>
>I was just coding a navigation bar:
>
><ul>
>    <li><a>Start</a></li>
>    <li>...rest of navigation
>
>Then I wanted to replace the "Start" by an image [...]

Use generated content[1].

ul > li:first-child > a { content:url(start.png); }

[1] http://www.w3.org/TR/css3-content/

Regards,
Simon Pieters
Received on Thursday, 24 November 2005 19:06:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:41 GMT