Tamanho da fonte CSS
.class {
font-size: 12px;
}
k-vernooy
.class {
font-size: 12px;
}
<span style="font-size:20px;"></span>
p {
font-size: 150% /*px, cm, in, etc.*/;
}
/* <absolute-size> values */
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;
/* <relative-size> values */
font-size: smaller;
font-size: larger;
/* <length> values */
font-size: 12px;
font-size: 0.8em;
/* <percentage> values */
font-size: 80%;
/* Global values */
font-size: inherit;
font-size: initial;
font-size: unset;
h1 {
font-size: 40px;
}
h2 {
font-size: 30px;
}
p {
font-size: 14px;
}
// to scale font size in relation to its parent element
style="font-size: 2vw;"