<ul>
    <li class="grad-1"></li>
    <li class="grad-2"></li>
  </ul>
HTML {
  height: 100%;
  }
BODY {
  background: white;
  font: 16px/1.4 'Trebuchet MS', Verdana, sans-serif;
  }
UL {
  list-style: none;
  padding: 0;
  text-align: center;
  }
LI {
  display: inline-block;
  height: 10em;
  margin: .2em;
  width: 45%;
  border: 1px solid;
  border-radius: 10px;
  }

.grad-1 {
  background: linear-gradient( 
    white 50%, 
    transparent 50%);
  background-size: 2em 2em;
  background-color: black;
}
.grad-2 {
  background: linear-gradient( 90deg,
    white 50%, 
    transparent 50%);
  background-size: 2em 2em;
  background-color: black;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.