Created
October 3, 2014 16:34
-
-
Save LL782/2011611bc97ca3c48e7f to your computer and use it in GitHub Desktop.
Font that scales with container's width
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Font that scales with container's width | |
*/ | |
html { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, black); | |
min-height: 100%; | |
color: #fff; | |
font-family: sans-serif; | |
font-weight: bolder; | |
text-transform: uppercase; | |
} | |
container { | |
font-size: 8vmax; | |
height: 8vmax; | |
line-height: 1; | |
position: absolute; | |
margin-top: -4vmax; | |
top: 50%; | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- content to be placed inside <body>…</body> --> | |
<container> | |
text | |
</container> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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