I keep on seeing font styles like font: 16px/28px 'Open Sans', 'Helvetica', sans-serif;
and I just can't find out what the 16px/28px
could mean. Why are there two different font sizes defined?
It sets both the font size and the line height.
See MDN documentation's example :
/*Set the font size to 12px and the line height to 14px. Set the font family to sans-serif */
p { font: 12px/14px sans-serif }
16px/28px
= Font-size and line height respectively
http://www.w3.org/TR/CSS2/fonts.html#font-shorthand
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With