Cap font-size in a container ? (think max-width/max-height)

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

Here's the situation. I'll have a container with a bunch of links in it, a tag-cloud I guess it's called.

Code: [ Select ]
<div id="subjects">
<a href="#" style="font-size:34pt">...</a>
<a href="#" style="font-size:14pt">...</a>
</div>
  1. <div id="subjects">
  2. <a href="#" style="font-size:34pt">...</a>
  3. <a href="#" style="font-size:14pt">...</a>
  4. </div>


If you look at that, you'll see "34pt", which is fairly large as far as font-sizes go. This number is automaticly generated in relation to the number of posts labeled as such.

Now I could easily work around this on the server-side or with JS, but given there's a "max-width" and a "max-height" in CSS for dimensions, I can't help but wonder if there's something similar for font-sizes.

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 60 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.