I want to use Split.js for creating my specific layout like
<div id="a" class="split split-horizontal">
</div>
<div id="b" class="split split-horizontal">
<div id="d" class="split content"></div>
<div id="e" class="split content"></div>
<div id="f" class="split content"></div>
</div>
<div id="c" class="split split-horizontal">
</div>
<script>
Split(['#a', '#b', '#c'], {
gutterSize: 20,
cursor: 'pointer'
});
Split(['#d', '#e', '#f'], {
direction: 'vertical',
sizes: [15, 70, 15],
gutterSize: 20,
cursor: 'row-resize'
});
</script>
but above code does not work.
Can anyone help me?
How can I create the layout with Split.js
because does not exist any sample like that in their site?
You where pretty close. First of all you didn't add
content
class to the left/right pain, so they didn't show. Then you mixed up the horizontal split. Here's a working fiddle.