html - How to nest 100% height divs and maintain a bottom footer (Pure CSS) -
i have problem when comes nesting divs @ 100% height. happens footer not far down want, remains above bottom of parent div.
i have reproduced happens me , want.
html,body,.container-main,main,main > .container-fluid{ color:#fff; height:100%; } http://jsfiddle.net/cazs/wkwa73b9/
but divs in 100% height
http://jsfiddle.net/cazs/ah56llxe/
i colored , given structure layout, see more want, hope understand want every div within main 100% height , footer remain @ bottom of parent div
i believe trying achieve demo if planning on using bootstrap entire structure building change. should decide in advance if plan on using bootstrap. suggest removing of classes not serving purpose html cause confusion down road.
html,body,.container-main,main,main > .container-fluid{ color:#fff; height:100%; } i not use above code typically try keep body, html separate prevent confusion.
edit
here fiddle demonstrates how accomplish want jquery demo 2.
here fiddle showing how similar can accomplished using css incorporating table properties. demo 3
Comments
Post a Comment