Skip to content

Instantly share code, notes, and snippets.

@johntron
Last active August 29, 2015 14:01
Show Gist options
  • Save johntron/768927e0b863dbb06672 to your computer and use it in GitHub Desktop.
Save johntron/768927e0b863dbb06672 to your computer and use it in GitHub Desktop.
The author of the code below intended the "small" text below to be 75%, but instead it is 12px. Update the CSS so it appears as intended.
<!DOCTYPE html>
<body>
<style>
body { font-size: 12px; }
div .caption {
font-size: 12px;
}
.small {
font-size: 75%;
}
</style>
<div>
<span class="caption">normal</span>
</div>
<div>
<span class="caption small">small</span>
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment