Skip to content

Instantly share code, notes, and snippets.

@WebPlatformDocs
Created June 11, 2013 02:20
Show Gist options
  • Save WebPlatformDocs/5754096 to your computer and use it in GitHub Desktop.
Save WebPlatformDocs/5754096 to your computer and use it in GitHub Desktop.
Untitled
.list {
display: -webkit-flex;
display: -moz-flex;
display: -ms-flex;
display: -o-flex;
display: flex;
-webkit-flex-direction: column;
-moz-flex-direction: column;
-ms-flex-direction: column;
-o-flex-direction: column;
flex-direction: column;
-webkit-align-items: center;
-moz-align-items: center;
-ms-align-items: center;
-o-align-items: center;
align-items: center;
background: #CCFFFF;
height: 100px;
}
.list div {
-webkit-flex: 1;
-moz-flex: 1;
-ms-flex: 1;
-o-flex: 1;
flex: 1;
background: #CCC;
margin: 5px;
}
.second {
-webkit-align-self: flex-end;
-moz-align-self: flex-end;
-ms-align-self: flex-end;
-o-align-self: flex-end;
align-self: flex-end;
}
<div class="list">
<div class="first">First</div>
<div class="second">Second</div>
<div class="third">Third</div>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment