Skip to content

Instantly share code, notes, and snippets.

@hariharankgk
Created February 6, 2020 09:41
Show Gist options
  • Save hariharankgk/8aa0bf2d75e9477c63b7515a7f74a91b to your computer and use it in GitHub Desktop.
Save hariharankgk/8aa0bf2d75e9477c63b7515a7f74a91b to your computer and use it in GitHub Desktop.
<div class="parent">
<p class="child1">child1</p>
<p class="child2">child2</p>
</div>
<style>
html {
font-size:100%;
}
.parent {
font-size:125%; /* font-size:20px; */
}
.child1 {
font-size:2em;
}
.child2 {
font-size:2rem;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment