Skip to content Skip to tags Skip to twitter news Skip to blog roll Skip to categories Skip to archives Skip to recent posts

November 2, 2007

VerticalFillJs: Auto-resize text to fill available space

by Benjamin Sterling in Javascript on November 2, 2007 @ 12:45 pm

It’s not jQuery but it does a nice job of taking a problem and fixing. The VerticalFillJs script was written by Dan Drinkard over at displayawesome.com, head over to his blog post to see it in action.

Basically what this code snippet does, is that it takes an element that has a set high and width and makes the inner text the appropriate size to fit that area.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

RSS Feed Link

42 queries. 0.828 seconds. Powered by WordPress visitor stats