Created
November 15, 2016 18:10
-
-
Save andrey-shikhov/78d24b0724b1cc5f5690c2aa3597ddab 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> | |
<style> | |
.flex-container { | |
display: -webkit-flex; | |
display: flex; | |
justify-content: center; | |
background-color: lightgrey; | |
} | |
.flex-item { | |
background-color: cornflowerblue; | |
align-self: center; | |
padding: 8px; | |
flex-grow: 1; | |
} | |
.flex-item2 { | |
background-color: magenta; | |
width: 100%; | |
} | |
</style> | |
</head> | |
<body> | |
<div style="width:300px;height:300px; background-color: cyan"> | |
<div class="flex-container"> | |
<div class="flex-item"> | |
<div class="flex-item2">some test text</div> | |
</div> | |
<div class="flex-item"> | |
<div class="flex-item2">some test text</div> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment