<dl class="inline">
  <dt> Test </dt>
  <dd> One </dd>
  <dt> Problem </dt>
  <dd> Lorem ipsum dolor sit dunt. Integer erat urna, egestas nec velit </dd>
  <dt> Test </dt>
  <dd> One </dd>
  <dt> Problem </dt>
  <dd> Lorem ipsum dolor sit amet, consectetur . </dd>
  <dt> Test </dt>
  <dd> One </dd>
  <dt> Problem </dt>
  <dd> Lorem ipsum dolor sit dunt. Integer erat urna, egestas nec velit </dd>
  <dt> Test </dt>
  <dd> One </dd>
  <dt> Problem </dt>
  <dd> Lorem ipsum dolor sit amet, consectetur </dd>
</dl>
dl,
dt,
dd {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
dl.inline {
  background: #f9f9f9;
  max-width: 960px;
  padding: 10px;
  margin: 10px auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
}
dl.inline dd,
dl.inline dt {
  padding: 10px;
}
dl.inline dt {
  font-weight: bold;
}
dl.inline dd:nth-child(4n + 2),
dl.inline dt:nth-child(4n + 1) {
  background: black;
  color: #fff;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.