Skip to content

Instantly share code, notes, and snippets.

@avspeed
Last active April 8, 2018 11:09
Show Gist options
  • Save avspeed/7d2bed47f9150ad8d71d873179600a8b to your computer and use it in GitHub Desktop.
Save avspeed/7d2bed47f9150ad8d71d873179600a8b to your computer and use it in GitHub Desktop.
flex html
#flexcanvas{
width: 100%;
height: 600px !important;
}
.rowParent, .columnParent{
display: -webkit-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-direction: normal;
-webkit-box-orient: horizontal;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
-webkit-box-pack: start;
-webkit-justify-content: flex-start;
-ms-flex-pack: start;
justify-content: flex-start;
-webkit-align-content: stretch;
-ms-flex-line-pack: stretch;
align-content: stretch;
-webkit-box-align: stretch;
-webkit-align-items: stretch;
-ms-flex-align: stretch;
align-items: stretch;
}
.columnParent{
-webkit-box-orient: vertical;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.flexChild{
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
-webkit-align-self: auto;
-ms-flex-item-align: auto;
align-self: auto;
}
#columnChild80991{
-webkit-box-flex: 1;
-webkit-flex-grow: 1;
-ms-flex-positive: 1;
flex-grow: 1;
}
#rowChild94685{
-webkit-box-flex: 0;
-webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto; width: 80%;
}
#rowChild17571{
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
<div id="container" class="flexChild rowParent">
<div id="rowChild94685" class="flexChild"></div>
<div id="rowChild17571" class="flexChild columnParent">
<div id="columnChild22742" class="flexChild"></div>
<div id="columnChild99288" class="flexChild"></div>
<div id="columnChild80991" class="flexChild selected"></div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment