Created
July 25, 2018 14:41
-
-
Save DiegoPinho/fe19a5f4f4ac282ec13d6a0b007078f7 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Flexbox</title> | |
<meta charset="utf-8" /> | |
<style> | |
.container { | |
border: 2px solid black; | |
display: flex; | |
/*flex-direction: row;*/ | |
/*justify-content: flex-start;*/ | |
/*flex-start, flex-end, center, space-between e space-around.*/ | |
/*align-items: flex-start;*/ | |
/*flex-start, flex-end, center, stretch e baseline. */ | |
/*flex-wrap: wrap;*/ | |
} | |
.container > div { | |
background-color: #f1f1f1; | |
margin: 10px; | |
text-align: center; | |
line-height: 75px; | |
font-size: 30px; | |
flex-grow: 1; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div>Bloco 1</div> | |
<div>Bloco 2</div> | |
<div>Bloco 3</div> | |
</div> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment