0

I am working on HTML description list to show dd and dt something like this.

enter image description here

But it is showing up something like below splitting the dt which is not desired behvaiour;

enter image description here

I am using following CSS.

.wrapper dl {
  margin: 0 -10px;
  padding: 0;
  column-count: 2;
}

.wrapper dt {
  vertical-align: top;
  width: calc(33.333333% - 20px);
  margin: 0 10px 20px 10px;
  background: lightgrey;
}
<div class="wrapper">
  <dl>

    <dd>One</dd>
    <dt>We can use CSS Grid to overwrite older methods.</dt>

    <dd>Two</dd>
    <dt>We can use CSS Grid to overwrite older methods.</dt>

    <dd>Three</dd>
    <dt>We can use CSS Grid to overwrite older methods.</dt>

    <dd>Four</dd>
    <dt>We can use CSS Grid to overwrite older methodsssdfsdf sdfsdf sdf sdfsdfsdsdf.</dt>

    <dd>Five</dd>
    <dt>We can use CSS Grid to overwrite older methods.</dt>

    <dd>Six</dd>
    <dt>We can use CSS Grid to overwrite older methods.</dt>

    <dd>Seven</dd>
    <dt>We can use CSS Grid to overwrite older methods.</dt>
    </ul>
</div>

What changes I need to do ?

Heretic Monkey
  • 11,687
  • 7
  • 53
  • 122
touseefkhan4pk
  • 473
  • 4
  • 26

0 Answers0