html - 3 column css layout with sticky footer - columns 100% height? -


with combining 2 examples i've found:

http://alistapart.com/article/holygrail

http://mystrd.at/modern-clean-css-sticky-footer/

i have come layout.

http://jsfiddle.net/xvuh5/

and great have 3 columns 100% height.

can please?

thank you

body of html , css script asked editor validation including jsfiddle in text:

<div id="header">this header.</div>  <div id="container">      <div id="center" class="column">         <h1>this main content.</h1>         <p>text text</p>     </div>  </div>  <div id="footer">this footer.</div> 

    /*** essential code ***/     * /* css reset */      {          padding: 0;          margin: 0;      }       html {         position: relative;         min-height: 100%;     }      body {         min-width: 630px;         /* 2 x (lc fullwidth + cc padding) + rc fullwidth */         margin: 0 0 100px; /* bottom = footer height */     }      html, body {         height: 100%;         width: 100%;     }      #container {         padding-left: 200px;      /* lc fullwidth */         padding-right: 190px;     /* rc fullwidth + cc padding */     }      #container .column {         position: relative;         float: left;     }      #center {         padding: 10px 20px;       /* cc padding */         width: 100%;     }      #left {         width: 180px;             /* lc width */         padding: 0 10px;          /* lc padding */         right: 240px;             /* lc fullwidth + cc padding */         margin-left: -100%;     }      #right {         width: 130px;             /* rc width */         padding: 0 10px;          /* rc padding */         margin-right: -100%;     }      #footer {         clear: both;         position: absolute;         left: 0;         bottom: 0;         height: 100px;         width: 100%;     }      /*** ie fix ***/     * html #left {         left: 150px;              /* rc fullwidth */     }      /*** looks ***/      body {         margin: 0;         padding: 0;         background: #fff;     }      #header, #footer {         font-size: large;         text-align: center;         padding: 0.3em 0;         background: #999;     }      #left {         background: #66f;     }      #center {         background: #ddd;     }      #right {         background: #f66;     }      #container .column {         padding-top: 1em;         text-align: justify;     } 

as see first answers coming in missing point of question, adding image make question clearer.

enter image description here

actually, differently.

pure css solution, totally responsive, without fixing height (header or footer)

here's demo

the downsize, have build html in order. (footer comes before columns)

<div class="container">     <div class="header">         <h1>header</h1>     </div>     <div class="heighttaker">         <div class="wrapper container inverse">             <div>                 <div class="footer">                 </div>             </div>             <div class="heighttaker">                 <div class="wrapper content">                     <div class="table">                         <div class="column c1">                         </div>                         <div class="column c2">                         </div>                         <div class="column c3">                         </div>                     </div>                 </div>             </div>         </div>     </div> </div> 

the column width may fixed, or not.. you're will.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -