Here are the things you need to add:
html, body {
height: 100%;
}
.container {
height: 100%;
}
Demo here: http://jsbin.com/tiyihigi/2/
Code here: http://jsbin.com/tiyihigi/2/edit?html,css
More Related Contents:
- Why is percentage height not working on my div? [duplicate]
- How do I style a dropdown with only CSS?
- Flexbox: 4 items per row
- IE8 issue with Twitter Bootstrap 3
- Make a grid item span to the last row / column in implicit grid
- Matching the first/nth element of a certain type in the entire document
- Elongated hexagon shaped button using only one element
- Align image in center and middle within div
- How to go up a level in the src path of a URL in HTML?
- CSS absolute position won’t work with margin-left:auto margin-right: auto
- How to disable CSS in Browser for testing purposes
- Is it possible to display an .html document , or .html fragment at CSS content?
- What are the priorities among CSS selectors
- How to add button inside input [closed]
- CSS: How can I set image size relative to parent height?
- How to change an image on click using CSS alone?
- How to make images stay within the rows of a css grid container?
- CSS – Sticky footer [duplicate]
- what does -webkit-transform: translate3d(0,0,0); exactly do? Apply to body?
- How to center an iframe horizontally?
- How to Make A Chevron Arrow Using CSS?
- Two div blocks on same line
- Change the column order in a css grid
- How to center buttons in Twitter Bootstrap 3?
- :before && :after pseudo elements not showing Firefox
- @font-face not working with specific version of Internet Explorer 11
- How to change cursor color without changing text color?
- How do I make a text input non-editable?
- Can a div have multiple classes (Twitter Bootstrap) [duplicate]
- Sizing flex items on the last row