I am working on a definition list where I need to vertically center the text within each dd element.
dl, dt, dd {
margin:0;
}
dt {
background: blue;
}
dd {
min-height: 100px;
background: gold;
border-bottom: 3px solid white;
}
<dl>
<dt>Fruit</dt>
<dd>Apple</dd>
<dd>Banana</dd>
<dd>Pear</dd>
</dl>
I attempted to use the table cell method from this JsFiddle, but it caused the dd elements to display in a single line instead of stacked on top of each other.
Is there a way to achieve a stacked list with the text vertically aligned within each gold-colored section?
Just a reminder: I prefer not to use flexbox and the text may be multi-lined.