[CSS2 counters] Is it possible to evaluate a value inside CSS?

Hi,

I am trying to do some tricks in CSS, one of them is to use different 
bullet images programmatically using a CSS counter, so i have a 
folder called bullets with 1.gif, 2.gif, etc.... I don't know if it 
is possible to do in CSS, i have tried several ways but i think i am 
not getting the way the list gets created... or perhaps this is not 
possible, what i want to do is for the content: propriety to 
evaluate/return url(1.gif) [see code below]

Using it directly (content:url(1.gif)) works fine... is there a way 
to do this, how do i create a "fake" variable with a counter?

ol {
	counter-reset: list 0;
	list-style:none;	
}
li:before{
	content: url( counter(list,decimal).gif ); //also tried 
url(counter(list,decimal))".gif";
	counter-increment: list;
}

Thanks,
Dan

Received on Monday, 15 May 2006 18:30:26 UTC