Created
July 11, 2013 13:07
-
-
Save guidobouman/5975294 to your computer and use it in GitHub Desktop.
Centered dynamic text.
This file contains 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
/** | |
* Centered dynamic text. | |
*/ | |
@import url(http://fonts.googleapis.com/css?family=Lato:100); | |
html { | |
height: 100%; | |
} | |
body { | |
background: #1abc9c; | |
background: radial-gradient(ellipse 100% 100%, rgba(0,0,0,0), rgba(0,0,0,0.05), rgba(0,0,0,0.2), rgba(0,0,0,1)), | |
linear-gradient(30deg, #1abc9c, #2980b9); | |
height: 100%; | |
min-height: 100%; | |
font-weight: 100; | |
font-family: Lato; | |
color: #ffffff; | |
letter-spacing:2px; | |
text-transform:; | |
font-size: 400%; | |
text-align: center; | |
} | |
.table { | |
display: table; | |
width: 100%; | |
height: 100%; | |
} | |
.cell { | |
display: table-cell; | |
vertical-align: middle; | |
} |
This file contains 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> --> | |
<body> | |
<div class="table"> | |
<div class="cell"> | |
<h1>Fonky, yo!</h1> | |
</div> | |
</div> | |
</body> |
This file contains 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 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-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment