.class {
font-size: 12px;
}
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;
font-size: 2em;
h1 {
font-size: 40px;
}
h2 {
font-size: 30px;
}
p {
font-size: 14px;
}
#selector{
font-size:20px;
}
/* you can set the font size using font-size: and a number followed by px */
.class {
font-size: 60px;
}
font-size: 20px
p {
font-size: 14pt;
}
font-size: ;
font-size:16px;
// to scale font size in relation to its parent element
style="font-size: 2vw;"
selector {
font-size: 12px;
}
Code Example |
---|
Css :: transition css react |
Css :: up arrow css |
Css :: css selector last child |
Css :: css waves background |
Css :: display none opposite |
Css :: login page ui html css |
Css :: css width percentage |
Css :: enable bootstrap intellisence vs code |
Css :: card tailwind css |
Css :: circle percentage css |
Css :: change option tag css |
Css :: negative border radius |
Css :: test typescript |
Css :: css rounded circle image |
Css :: disable on print margin html |
Css :: memebuat html dan css login instagram |
Css :: Inline style |
Css :: tailwind simple product card |
Css :: resctrict css to apply on div |
Css :: css folded corner |
Css :: table content center |
Css :: pyqt5 qresources |
Css :: button with background image and text html css |
Css :: how to see applications installed by wine cmd |
Css :: what is padding in css |
Css :: three dots animation |
Css :: 404 page template css |
Css :: advance css |
Css :: css how to make 2d animations at once |
Css :: specific id under class css |