What is the proper syntax for putting all css font properties into one value.
body {font: 12px, arial, red}
Something like that but with all the selectors and properties.
body{
font: bold italic 15px/20px arial,sans-serif;
color: red;
}
http://www.w3schools.com/css/tryit.asp?filename=trycss_font
you can't include the color as part of the declaration. 15px/20px = font-size/line-height
nice link, maegar!
font: [ [ <'font-style'> || <'font-variant'> || <'font-weight'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar | inherit
Source: 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