Created
April 16, 2014 18:36
-
-
Save alice-liu/10918260 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
.form | |
.cell1 | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed consequat, arcu at molestie iaculis, enim orci pharetra turpis, sed ultrices tortor nunc ac orci. Quisque pellentesque enim et euismod facilisis. Vestibulum sed urna vel dolor imperdiet consectetur nec non arcu. Nunc augue tortor, vulputate in sem vitae, vulputate bibendum tellus. | |
.cell2 | |
blah blah |
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.2.18) | |
// Compass (v0.12.4) | |
// ---- | |
.form { | |
display: table; | |
margin: 0 auto; | |
} | |
.row { | |
display: table-row; | |
} | |
%cell { | |
box-sizing: border-box; | |
display: table-cell; | |
border-left: 1px solid blue; | |
width: 380px; | |
vertical-align: middle; | |
&:first-child { | |
border-left: 0; | |
} | |
} | |
.cell1 { | |
@extend %cell; | |
padding-right: 60px; | |
} | |
.cell2 { | |
@extend %cell; | |
text-align: center; | |
} |
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
.form { | |
display: table; | |
margin: 0 auto; | |
} | |
.row { | |
display: table-row; | |
} | |
.cell1, .cell2 { | |
box-sizing: border-box; | |
display: table-cell; | |
border-left: 1px solid blue; | |
width: 380px; | |
vertical-align: middle; | |
} | |
.cell1:first-child, .cell2:first-child { | |
border-left: 0; | |
} | |
.cell1 { | |
padding-right: 60px; | |
} | |
.cell2 { | |
text-align: center; | |
} |
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='form'> | |
<div class='cell1'> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed consequat, arcu at molestie iaculis, enim orci pharetra turpis, sed ultrices tortor nunc ac orci. Quisque pellentesque enim et euismod facilisis. Vestibulum sed urna vel dolor imperdiet consectetur nec non arcu. Nunc augue tortor, vulputate in sem vitae, vulputate bibendum tellus. | |
</div> | |
<div class='cell2'> | |
blah blah | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment