DISQUS

fortes.com: jMetronome: Using jQuery to keep typographic rhythm

  • PJ · 1 year ago
    This is super-useful, thanks a bunch!

    One question: What happens if the user resizes the browser font? Won't that throw off all the spacing?
  • Fortes · 1 year ago
    You're correct that it will throw off spacing if the actual browser font size gets modified. However, the latest versions of IE and FF will not just increase font size, but apply zooms to images and other elements, so your page may work just fine (I haven't investigated).

    For FF2 and other browsers, you can use jQEm to set up a handler that will re-run the script whenever the text size changes.
  • Paul Wolpe · 1 year ago
    Have you considered making this into a jQuery plugin so you don't need to edit the selector in the source?