Compiling IN CSS
Compiling [font]
Using the
font
short hand property it is possible to cover all the different font properties in one single property.
For example, imagine these four lines of code used to describe font-properties for
<p>
:
p {
font-style: italic;
font-weight: bold;
font-size: 30px;
font-family: arial, sans-serif;
}
Using the short hand property, the code can be simplified:
p {
font: italic bold 30px arial, sans-serif;
}
Comments
Post a Comment