Skip to content

Instantly share code, notes, and snippets.

@gregtap
Created December 5, 2015 14:27
Show Gist options
  • Select an option

  • Save gregtap/91e87471ed995a8d0b87 to your computer and use it in GitHub Desktop.

Select an option

Save gregtap/91e87471ed995a8d0b87 to your computer and use it in GitHub Desktop.
RrwJxp
<div class="header">
<h1>Header</h1>
</div>
<div class="main">
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium
quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.</p>
</div>
<div class="footer">
Last name: <input type="text" name="lname"><br>
<div contenteditable="true" placeholder="Type a message" spellcheck="false" ">edit me contenteditable</div>
END
</p>
</div>
body {
font-family: Avenir, sans-serif;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
padding: 0;
margin: 0;
min-height: 100vh;
}
div {
width: 100%;
}
div p {
margin-left: 1em;
margin-right: 1em;
}
div.header {
background-color: orange;
text-align: center;
}
div.main {
background-color: grey;
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
div.footer {
color: white;
background-color: blue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment