Last active
October 5, 2015 01:55
-
-
Save dsadhanala/0df9be6f40479ecb349f to your computer and use it in GitHub Desktop.
Flex box Sample
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="flex-row"> | |
<div class="flex-col"></div> | |
<div class="flex-col"></div> | |
<div class="flex-col"></div> | |
<div class="flex-col"></div> | |
<div class="flex-col"></div> | |
<div class="flex-col"></div> | |
<div class="flex-col"></div> | |
<div class="flex-col"></div> | |
<div class="flex-col"></div> | |
<div class="flex-col"></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
.flex{ | |
&-row{ | |
display: flex; | |
flex-wrap: wrap; | |
flex-direction: row; | |
//flex-flow: row wrap; | |
} | |
&-col{ | |
flex: 1 0 33%; | |
height: 100px; | |
background-color: #FBB38B; | |
border: 2px solid #fff; | |
&:nth-child(7n){ | |
flex: 1 0 99%; | |
background-color: #67C562; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment