css - How to keep fixed div on the left and relative div on the right as resizable container -


i have 2 containers both relative , both set float right. target that, left container give height 100% of screen , in fixed position. when it, other elements broken. suggestions kindly appreciated.

http://jsfiddle.net/vpxec/3/

<div class="outleftcontainerunder"> </div>   <div class="maincontainer">     <div class="innermaincontainer">         <div class="articlebutton"></div>         <div class="discussionbutton"></div>         <div class="editbutton"></div>         <div class="searchbar"></div>     </div> </div>      body     {         margin: 0;         padding: 0;     }      .outleftcontainerunder     {         width: 175px;         height: 250px;         background: green;         float: left;         position: relative;     }      .maincontainer     {         width: calc(100% - 175px);         height: 1000px;         float: left;         position: relative;     } 

if remove float on left container, , move main container right should work how think want to.

see: http://jsfiddle.net/vpxec/2/

.outleftcontainerunder /*i want div in position fixed , height 100% of screen. when it, there chaos*/ {   width: 175px;   height: 250px;   background: green;   position: fixed;   height: 100%;  }  .maincontainer {   width: calc(100% - 175px);   left: 175px;   height: calc(100% + 50px);   float: left;   position: relative; } 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -