| |
CSS Font |
|
|
Subject: CSS Font
Author: CyberSpider
Posted on: 04/13/2016 06:23:10 PM
CSS font property can be categorized as:
font-style -- normal, italic, oblique; font-style -- normal, none, small-caps; font-weight -- normal, none, small-caps; font-weight -- normal, bold, lighter, bolder, 100, 900; font-stretch -- normal, condensed, expanded; font-size -- medium, small, large, 12px, 0.8em, 80%; line-height -- normal, 2.3, 2.5em, 120%; font-family -- "Times New Roman", Verdana, Courier;
A example:
p.custom {
font-style: italic;
font-variant: small-caps;
font-weight: bolder;
font-stretch: condensed;
font-size: 16px;
line-height: 2;
font-family: cursive;
}
They can also be put together under one roof:
p.custom {
/* style | variant | weight | stretch | size/height | family */
font: italic small-caps bolder condensed 16px/2 cursive;
}
Try it yourself in sandbox »
Replies:
References:
|
|
|
|