I'm looking for a list of definitions that are inline with their terms, so that
<dl>
<dt>Email</dt><dd>contact@example.com</dd>
<dt>Bio</dt><dd>Person's full-text bio, which spans multiple lines, and starts on the same line as the text <q>Bio</q>, just like the previous definitions. Any given solution should both allow this text to wrap below the <dd> and then provide a line break afterwards.</dd>
<dt>Phone</dt><dd>(555) 123-4567</dd>
</dl>
Renders as:
Email: contact@example.com
Bio: Person's full-text bio, which spans multiple lines, and starts on the same line as the text “Bio”, just like the previous definitions. Any given solution should both allow this text to wrap below the <dd> and then provide a line break afterwards.
Phone: (555) 123-4567
I've already tried using dt,dd{display:inline}
, but that caused all definitions to be displayed on one line with eachother.
I've already reviewed How to style dt and dd so they are on the same line? and it resulted in a more tabular layout, which won't work in this case.