.splitpanel-vertical { display: flex; flex-direction: row; overflow: auto; } .splitpanel-vertical > *:first-child { max-width: calc(100% - 9px); } .splitpanel-vertical > * { flex: 0 0 auto; overflow: auto; } .splitpanel-vertical > *:last-child { flex: 1 1 auto; overflow: auto; } .splitpanel-horizontal { display: flex; flex-direction: column; overflow: auto; } .splitpanel-horizontal > *:first-child { max-height: calc(100% - 9px); } .splitpanel-horizontal > * { flex: 0 0 auto; overflow: auto; } .splitpanel-horizontal > *:last-child { flex: 1 1 auto; overflow: auto; } .splitter-vertical { flex: 0 0 auto; width: 9px; background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAhCAQAAABOpSL+AAAAIklEQVR4AWMwbb/PdR+JZDD9f1/oPhI5sgVGBSruc9xHIgGdSQqqQJGkRgAAAABJRU5ErkJggg==') center center no-repeat #cecece; cursor: col-resize; } .splitter-horizontal { flex: 0 0 auto; height: 9px; background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAICAQAAADdTl4aAAAAIElEQVQoz2MwrTD9TxFsZ7jPcV+IIsjFQAUw6hFqegQA+xzRHT2p7pEAAAAASUVORK5CYII=') center center no-repeat #cecece; cursor: row-resize; } /* Dead Simple Grid (c) 2015 Vladimir Agafonkin */ .dsgrow .dsgrow { margin: 0 -1.5em; } .dsgcol { padding: 0 1.5em; } .dsgcolf { padding: 0 1.5em; } .dsgrow:after { content: ""; clear: both; display: table; } @media only screen { .dsgcol { float: left; width: 100%; box-sizing: border-box; } .dsgcol::before { content: "\200B"; } .dsgcolf { float: left; box-sizing: border-box; } .dsgcolf::before { content: "\200B"; } }