font size css property code example
Example 1: font size css
.class {
font-size: 12px;
}
Example 2: width css property
width: 300px;
width: 25em;
width: 75%;
width: max-content;
width: min-content;
width: fit-content(20em);
width: auto;
width: inherit;
width: initial;
width: unset;
Example 3: font size css
font-size: xx-small;
font-size: x-small;
font-size: small;
font-size: medium;
font-size: large;
font-size: x-large;
font-size: xx-large;
font-size: xxx-large;
font-size: smaller;
font-size: larger;
font-size: 12px;
font-size: 0.8em;
font-size: 80%;
font-size: inherit;
font-size: initial;
font-size: unset;
Example 4: define font css
body {
font: normal small-caps normal 16px/1.4 Georgia;
}