Skip to content

Instantly share code, notes, and snippets.

@shlomitc
Created November 11, 2014 09:41
Show Gist options
  • Save shlomitc/9b812cfb122754d49717 to your computer and use it in GitHub Desktop.
Save shlomitc/9b812cfb122754d49717 to your computer and use it in GitHub Desktop.
<!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>
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