So I have a dl list something like this:
.title {
display: inline-block;
padding-bottom: 20px;
}
dd {
-moz-margin-start: 0;
-webkit-margin-start: 0;
-o-margin-start: 0;
margin-start: 0;
}
<dl class="details">
<dt class="title">Name:</dt>
<dd class="title">Box</dd>
<dt class="member">Member Price</dt>
<dd class="member">$25</dd>
<dt class="retail">Retail Price</dt>
<dd class="retail">$30</dd>
</dl>
I would like the dt to display above the dd, but also for each dt/dd 'group' to be inline with the next. Is it at all possible to do this without position absolute or another element wraping each dt/dd group (which would break the structure of the dl)
The image attached shows what I am trying to achieve:
` is the right element to use for this, just semantically speaking. are you open to other HTML?
– andi Dec 08 '16 at 17:22