html - Content is pushed down by DIV -


this question based on question: twitter bootstrap 3 2 columns full height

i have same layout. but, when try put div in content part, pushes content of sidebar down. here's fiddle

<header>header</header> <div class="container">     <div class="row">       <div class="col-md-3 no-float">navigation</div>       <div class="col-md-9 no-float"><div><div style="width=100%;height:55px;background:red"></div>content</div></div> </div> 

css:

html,body,.container {     height:100%; } .container {     display:table;     width: 100%;     margin-top: -50px;     padding: 50px 0 0 0; /*set left/right padding according needs*/     -moz-box-sizing: border-box;     box-sizing: border-box; } header {     background: green;     height: 50px; }  .row {     height: 100%;     display: table-row; } .col-md-3.no-float, .col-md-9.no-float {     float: none; /* baxabbit */ } .col-md-3 {     display: table-cell;     background: pink; } .col-md-9 {     display: table-cell;     background: yellow;     float: none; } 

if have other suggestions, need following layout using bootstrap , angular, keeping idea of having full-height columns upper post:

  +-------------------------------------------------+   |                     header                      |   +------------+------------------------------------+   | nav.header |    contentheader               | < |   |------------|------------------------------------|   |navigation  |         content                | t |   |            |                                | e |   |            |                                | x |   |            |                                | t |   |            |                                |   |   |            |                                |   |   |            |                                |   |   +------------+------------------------------------+ 

thank you


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -