So let's say we have this <dl></dl>
:
<dl>
<dt>Email:</dt><dd>contact@example.com</dd>
<dt>Phone:</dt><dd>(555) 123-4567</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>
dt {
float: left;
margin-right: 5px;
font-weight: bold;
}
dd {
float: left;
margin-left: 0px;
}
And I aso used this JSFiddle to work with it. source
Now the output is:
Email:contact@example.comPhone:(555) 123-4567Bio:
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 and then provide a line break afterwards.Phone:(555) 123-4567
I want it to be inline like:
Email:contact@example.comPhone:(555) 123-4567Bio: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 and then provide a line break afterwards.Phone:(555) 123-4567
Is there any CSS solution?