css font properties code example
Example 1: how bold text in css
p.normal {
font-weight: normal;
}
p.thick {
font-weight: bold;
}
p.thicker {
font-weight: 900;
}
Example 2: css font
@font-face {
font-family: "Name of the font";
src: url("your/path/to/the.font");
}
p{
font-family: "Ubuntu";
}
Example 3: css font
p {
font: italic small-caps bold 12px/30px Georgia, serif;
}
Example 4: css font style
.example {
font-style: italic;
}
Example 5: define font css
body {
font: normal small-caps normal 16px/1.4 Georgia;
}
Example 6: font family css
h1 {
font-family: [font name];
}