SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2011
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS Proportional Letter Spacing

    I'm aware that by dividing font-size into line-heigh it's possible to come up with a multiple which can be used to express line-height. This value contains no measurement unit (e.g. em, rem, px), and its advantage is that it's totally scalable based on what size the client displays the font at.

    My question is, is there an equivalent method for letter-spacing, and how does it work?

    Cheers,
    simon

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,321
    Mentioned
    462 Post(s)
    Tagged
    8 Thread(s)
    There is a letter-spacing property which allows you to stretch letters apart or contract them. Not sure if that's what you are looking for, but it's worth trying. E.g.

    Code:
    h1 {letter-spacing: 2em;}


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •