JQ resize
by Sparrow Squire
HTML
<div class="header">
Fixed header
</div>
<div class="wrapper">
<div class="inner-wrapper">
<div class="left-panel">
<div class="left-top-panel">
Center<br/>top<br/>Center<br/>top
</div>
<div class="left-bottom-panel">
Center<br/>bottomCenter<br/>bottomCenter<br/>bottomCenter<br/>bottomCenter<br/>bottom
</div>
</div>
<div class="right-panel">
Right<br/>Right<br/>Right<br/>Right<br/>Right<br/>Right<br/>Right<br/>Right<br/>Right<br/>Right
</div>
</div>
</div>
CSS
html, body {
height: 100%;
overflow: hidden
}
.header {
width:100%;
display:block;
height: 20px;
background-color: lightblue;
}
/* Resizable panels */
body {position: relative}
.wrapper {
position:absolute;
top: 21px;
right: 0;
bottom: 0;
left: 0;
background: yellow;
}
.inner-wrapper,
.left-panel {
display: table;
width: 100%;
height: 100%;
}
.left-top-panel,
.left-bottom-panel {display: table-row}
.right-panel {
display: table-cell;
}
.left-top-panel,
.left-bottom-panel,
.right-panel {
background: teal;
outline: 1px solid #fff;
box-sizing: border-box;
min-height: 5px;
overflow: hidden
}
JavaScript
$(function () {
$(".right-panel").resizable({
handles: "e, w",
minHeight: 5,
minWidth: 5
});
$(".left-bottom-panel").resizable({
handles: "n, s",
minHeight: 5,
minWidth: 5
});
});