1@font-face {
2 font-family: "Name of the font"; /*eg Ubuntu*/
3 src: url("your/path/to/the.font");
4}
5
6p{
7 font-family: "Ubuntu";
8}
1p {
2 font: italic small-caps bold 12px/30px Georgia, serif;
3}
4
5/*
6The font property is a shorthand property for:
7font-style
8font-variant
9font-weight
10font-size/line-height
11font-family
12*/
1#example {
2 font-style: normal; /* no specification, default */
3 font-style: italic; /* font is italic */
4 font-style: oblique; /* font is italic, even if italic letters are not specified for font family */
5 font-style: inherit; /* inherit property from parent */
6 font-style: initial; /* default value */
7}
1body {
2 font: normal small-caps normal 16px/1.4 Georgia;
3}
4
5/* is the same as:
6
7body {
8 font-family: Georgia;
9 line-height: 1.4;
10 font-weight: normal;
11 font-stretch: normal;
12 font-variant: small-caps;
13 font-size: 16px;
14}
15 */