html - Container height 100% - px -


i'm trying simple structure.

header (35px height), container (100% height) , bottom (35px height too).

for i'm ussing height: calc(100% - 72px); height: -webkit-calc(100% - 72px); height: -moz-calc(100% - 72px), doesn't works safari v5 , ie ...

http://jsfiddle.net/2kng68pa/

also try magin-top but... lost of time.

please, can me? need same result jsfiddle compatible ie , safari v5 ...

thanks in advance.

if header , bottom fixed height, rest easy:

html,  body { height:100%; }  * { box-sizing: border-box; margin:0; padding:0; }  header,footer { height: 35px; background: #0ff; color: #fff; position:absolute; left:0; right:0;}  header { top:0; }  footer { bottom:0; }  .container { background: #0f0; height: 100%; padding: 35px 0;}
<header>header</header>  <div class="container">    container    </div>  <footer>footer</footer>


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -