Created
July 25, 2014 18:59
-
-
Save anonymous/ebbcecbea2f066b8238d to your computer and use it in GitHub Desktop.
Untitled
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
div { | |
width: 100px; | |
height: 100px; | |
/* Para deixar o texto centralizado na div, | |
podemos colocar um line-height igual à altura | |
dela. Só funciona bem se o texto tiver uma | |
linha só. | |
*/ | |
line-height: 100px; | |
text-align: center; | |
font-size: 25px; | |
} | |
.container { | |
width: 400px; | |
} | |
.primeiro { | |
background-color: red; | |
} | |
.segundo { | |
background-color: blue; | |
} | |
.terceiro { | |
width: 200px; | |
height: 200px; | |
line-height: 200px; | |
background-color: green; | |
} | |
.quarto { | |
background-color: orange; | |
} | |
.quinto { | |
background-color: magenta; | |
} |
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
<div class="container"> | |
<div class="primeiro">1</div> | |
<div class="segundo">2</div> | |
<div class="terceiro">3</div> | |
<div class="quarto">4</div> | |
<div class="quinto">5</div> | |
</div> |
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":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment