Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 53
    It's to mirror old typesetting syntax, where you'd have font set as, for instance "10pt on 12pt", or "10pt/12pt". Commented Mar 31, 2009 at 16:06
  • 1
    I actually use this quite a bit. The designer I work with always refers to sizing as, for example, "14 over 22". I put it in by accident one day and was surprised/content when it worked. Commented Mar 7, 2013 at 20:08
  • 1
    a quickie: does this format also not require the font-family to be specified? My browsers are ignoring this property: font: 12px/16px; but accepting this: font: 12px/16px sans-serif; This behaviour is also documented here Commented Jul 1, 2013 at 11:28
  • @Harsh Yes, a family (along with a size) is minimally required for the font shorthand property as you can see in the official definition. Commented Jul 1, 2013 at 11:34
  • 1
    thanks for the clarification. Perhaps you can update the answer (or the question) as it is slightly misleading in that a casual reader can assume that only a SIZE/LINE_HEIGHT declaration would work. Commented Jul 1, 2013 at 12:12