Last active
August 29, 2015 14:12
-
-
Save misscs/b9449e0e3d1976e73b83 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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="wrapper"> | |
<div class="box"> | |
<p>Content. Content. Like cookies. content</p> | |
<footer>Foot</footer> | |
</div> | |
<div class="box"> | |
<p>Content</p> | |
<footer>Foot</footer> | |
</div> | |
<div class="box"> | |
<p>Content. cookies. cookies. cake. cake. cupcakes. yum. | |
Content. cookies. cookies. cake. cake. cupcakes. yum | |
Content. cookies. cookies. cake. cake. cupcakes. yum | |
Content. cookies. cookies. cake. cake. cupcakes. yum | |
Content. cookies. cookies. cake. cake. cupcakes. yum | |
</p> | |
<footer>Foot</footer> | |
</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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
@import "compass"; | |
.wrapper { | |
display: flex; | |
} | |
.box { | |
@include flex(1 33%); | |
background: crimson; | |
display: flex; | |
flex-direction: column; | |
margin: 0 0.5em; | |
p { | |
padding: 0.5em; | |
} | |
footer { | |
flex: (0 0 auto); // flex: none; also works | |
background: pink; | |
margin-top: auto; | |
padding: 0.5em; | |
} | |
} | |
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
.wrapper { | |
display: flex; | |
} | |
.box { | |
-webkit-flex: 1 33%; | |
flex: 1 33%; | |
background: crimson; | |
display: flex; | |
flex-direction: column; | |
margin: 0 0.5em; | |
} | |
.box p { | |
padding: 0.5em; | |
} | |
.box footer { | |
flex: 0 0 auto; | |
background: pink; | |
margin-top: auto; | |
padding: 0.5em; | |
} |
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="wrapper"> | |
<div class="box"> | |
<p>Content. Content. Like cookies. content</p> | |
<footer>Foot</footer> | |
</div> | |
<div class="box"> | |
<p>Content</p> | |
<footer>Foot</footer> | |
</div> | |
<div class="box"> | |
<p>Content. cookies. cookies. cake. cake. cupcakes. yum. | |
Content. cookies. cookies. cake. cake. cupcakes. yum | |
Content. cookies. cookies. cake. cake. cupcakes. yum | |
Content. cookies. cookies. cake. cake. cupcakes. yum | |
Content. cookies. cookies. cake. cake. cupcakes. yum | |
</p> | |
<footer>Foot</footer> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment