Is there a way to create a 100% height div that can be divided by a draggable border vertically? Take a look at my fiddle to see what I have so far: http://jsfiddle.net/k5rtbzs5/
This is the HTML code:
<div class="column">
<div class="top">
test
</div>
<div class="slider"></div>
<div class="bot">
test
</div>
</div>
Here is the corresponding CSS:
html {
height: 100%;
width: 100%;
}
body {
height: 100%;
}
.column {
width: 100%;
height: 100%;
border: solid #000;
}
.top {
width: 100%;
height: 50%;
background-color: #989898;
}
.bot {
width: 100%;
height: 50%;
background-color: #686868;
}
.slider {
width: 100%;
height: 10px;
background-color: #000;
}
Any suggestions on how I can enable the "slider" div to adjust the heights of the "top" and "bot" divs by dragging it? I also want to ensure that the "column" div maintains the full height of the browser window.
Thank you