On 07/11/2006, at 11:57 PM, Designer wrote:
Would it be wrong to use:
a1{font-size : 0.5em}
...
a30{font-size : 25em} (or whatever)
Depends on if you want to have 30 rules in your CSS. Given your
question, I'm guessing you're generating it by hand, so you've got
your work cut out for you if you ever want to change the classes and
their associated styles. That, and normalizing the tag-cloud to the
1-30 range might not suit all cases.
Personally, I would do a list like this:
<style type="text/css">
ul.tag-cloud { list-style-type: none; }
li.tag-entry { display: inline; }
li.tag-entry em { font-size: 1.1em; }
span.tag-entry-count { display: none; }
</style>
<ul class="tag-cloud">
<li class="tag-entry">
<em><a href="#">Pixies</a></em>
<span class="tag-entry-count">(1 items)</span>
</li>
<li class="tag-entry">
<em><em><em><a href="#">Fairies</a></em></em></em>
<span class="tag-entry-count">(3 items)</span>
</li>
<li class="tag-entry">
<em><em><a href="#">Chumba-Wambas</a></em></em>
<span class="tag-entry-count">(2 items)</span>
</li>
</ul>
--
Nathan de Vries
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************