Posted by Ben C on 11/23/07 17:27
On 2007-11-23, Jonathan N. Little <lws4art@centralva.net> wrote:
> Tomasz Chmielewski wrote:
>> I have a part of a page which contains text links to other subpages:
>>
>> <a href="subpage.html">Subpage</a>
>>
>> Now, I'd like each link to contain a tiny image after each text:
>>
>> <a href="subpage.html">Subpage<img src="arrow.png"></a>
>>
>>
>> Is it possible to do something similar with CSS only?
>>
>> Something like:
>>
>> a:after { content: blah_image }
>>
>> Which would add an image after each link?
>
> no because generated content is just play text, no html.
[...]
You can generate images with, e.g.:
content: url("blah.png");
You also should be able to do:
a:after
{
content: "";
background-image: url("blah.png");
}
[Back to original message]
|