Need help! Coockie and resize div
- <div class="right_clm_fix" id="rcf">
- <div class="right_top_block" id="rt">Default height 50%</div>
- <div class="btn_sl" id="btn_sl">move top or bottom</div>
- <div class="right_bottom_block" id="rb">Default height 50%</div>
- </div>
- <style>
- .right_clm_fix {
- position:fixed;
- width:300px;
- height:100%;
- top:0;
- right:0;
- }
- .right_top_block {
- width:300px;
- height:50%; /* default */
- background: rgba(0,0,0,0.8);
- }
- .btn_sl {
- height:30px;
- width:300px;
- background: red;
- color:#fff;
- }
- .right_bottom_block {
- width:300px;
- height:50%; /* default */
- background: rgba(0,0,0,0.8);
- }
- </style>
if you move btn_sl, the size rt and rb changes. and height this divs mast saved in coockie.
for example http://jsfiddle.net