<div></div>
div {
   background-image: repeating-linear-gradient(
    0deg,
    transparent 0 20px,
    black 20px 40px
  );
  margin: 1rem;
  height: 200px;
  border: 1px solid #000;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.