Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example of using font-size in CSS
.small {
font-size: xx-small;
}
.larger {
font-size: larger;
}
.point {
font-size: 24pt;
}
.percent {
font-size: 200%;
}
<h1 class="small">Small H1</h1>
<h1 class="larger">Larger H1</h1>
<h1 class="point">24 point H1</h1>
<h1 class="percent">200% H1</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment