split

by jshacker

HTML

<div>
  <div>first</div>
  <div>second</div>
</div>

SCSS

div {
  position: relative;
  min-height: 100px;
  padding: 0.5em;
  background-color: white;
  & & {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: #999;
    padding: 0.2em;
    &:first-child {
      left: 0;
      background-color: red;
    }
    &:last-child {
      right: 0;
      background-color: blue;
    }
  }
}