Skip to content

Instantly share code, notes, and snippets.

@LL782
Created October 3, 2014 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LL782/14336b5e9b668e1ff158 to your computer and use it in GitHub Desktop.
Save LL782/14336b5e9b668e1ff158 to your computer and use it in GitHub Desktop.
Font that scales with container's width
/**
* Font that scales with container's width
*/
html {
background: linear-gradient(45deg, #0f0, #000);
}
container {
font-size: 10vw;
height: 10vw;
position: absolute;
margin-top: -5vw;
top: 50%;
}
<!-- content to be placed inside <body>…</body> -->
<container>
<div>ELASTIC TEXT</div>
</container>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment