Skip to content

Instantly share code, notes, and snippets.

@tschueller
Last active August 29, 2015 14:27
Show Gist options
  • Save tschueller/003a08ce828f553bab44 to your computer and use it in GitHub Desktop.
Save tschueller/003a08ce828f553bab44 to your computer and use it in GitHub Desktop.
Alining elements to bottom
<div id="container" style="">
<div class="bottom_div" style="">1</div>
<div class="bottom_div" style="display: none">2</div>
<div class="bottom_div" style="">3</div>
<div class="bottom_div" style="">4</div>
</div>
#container {
width: 100px;
height: 150px;
position: relative;
border: 1px solid red;
transform: rotate(180deg);
}
.bottom_div {
box-sizing: border-box;
height: 20px;
margin: 2px;
border: 1px solid green;
transform: rotate(-180deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment