One thing you could do is generate a hash of the names in use keyed by name and with a usage count as the value. Then form the next css name as ".$name" . $names{$name} + 1. Remembering of course to ++$names{$name} afterwards.
In reply to Re: Dynamically creating CSS elements
by GrandFather
in thread Dynamically creating CSS elements
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |