Automatic line-height – jQuery plugin
My first jQuery plugin: jquery.autolineheight.
In a nutshell, this JavaScript adjusts the line-height of a container (such as
a div
) in proportion to it’s width, relative to the font
size.
Demo of jquery.autolineheight .
See the blog entry for docs and download links:
Auto line-height: a jQuery plugin for flexible layouts
Colophon
This site and its words and images were crafted by Ollie, with consideration for accessibility .
Despite the lack of cookies or tracking, Ollie would love to know you were here. Let him know with a toot @ollicle@mastodon.social or an email .
This wouldn’t be a blog without a RSS feed .
The display font is LTR Limited Grotesque, licensed from LettError. The text face is Taurus Grotesk, licensed from Foster Type.
Copyright © 2003—2024 Oliver Boermans .