Created
November 11, 2014 09:41
-
-
Save shlomitc/9b812cfb122754d49717 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/lifuvoceke
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> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
.wrapper { | |
padding: 0 2%; | |
} | |
.leftSide, .rightSide { | |
width: 50%; | |
height: 100px; | |
float: left; | |
} | |
.leftSide { | |
/* display:flex; */ | |
/* @include flexbox((display: box), $version: 1); */ | |
display: -webkit-flex; | |
display: flex; | |
background: red; | |
} | |
.rightSide { | |
background: green; | |
} | |
.imgCtr { | |
width: 57px; | |
height: 57px; | |
background-color: blue; | |
} | |
.textCtr { | |
height: 57px; | |
/* flex:auto; */ | |
/* @include flexbox((box-flex:5), $version: 1); */ | |
-webkit-flex: auto; | |
flex: auto; | |
background-color: black; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="wrapper"> | |
<div class="leftSide"> | |
<div class="imgCtr"> | |
</div> | |
<div class="textCtr"> | |
</div> | |
</div> | |
<div class="rightSide"> | |
</div> | |
</div> | |
<script id="jsbin-source-css" type="text/css">@import "compass/css3/flexbox"; | |
body{ | |
margin:0; | |
padding:0; | |
} | |
.wrapper{ | |
padding:0 2%; | |
} | |
.leftSide, .rightSide{ | |
width:50%; | |
height:100px; | |
float:left; | |
} | |
.leftSide{ | |
/* display:flex; */ | |
/* @include flexbox((display: box), $version: 1); */ | |
@include flexbox((display: flex)); | |
background:red; | |
} | |
.rightSide{ | |
background:green; | |
} | |
.imgCtr{ | |
width:57px; | |
height:57px; | |
background-color:blue; | |
} | |
.textCtr{ | |
height:57px; | |
/* flex:auto; */ | |
/* @include flexbox((box-flex:5), $version: 1); */ | |
@include flexbox((flex: auto)); | |
background-color:black; | |
}</script> | |
</body> | |
</html> |
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
body { | |
margin: 0; | |
padding: 0; | |
} | |
.wrapper { | |
padding: 0 2%; | |
} | |
.leftSide, .rightSide { | |
width: 50%; | |
height: 100px; | |
float: left; | |
} | |
.leftSide { | |
/* display:flex; */ | |
/* @include flexbox((display: box), $version: 1); */ | |
display: -webkit-flex; | |
display: flex; | |
background: red; | |
} | |
.rightSide { | |
background: green; | |
} | |
.imgCtr { | |
width: 57px; | |
height: 57px; | |
background-color: blue; | |
} | |
.textCtr { | |
height: 57px; | |
/* flex:auto; */ | |
/* @include flexbox((box-flex:5), $version: 1); */ | |
-webkit-flex: auto; | |
flex: auto; | |
background-color: black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment