html - Can I render a DT on the same line as its DD? -
i'm looking list of definitions inline terms, that
<dl> <dt>email</dt><dd>contact@example.com</dd> <dt>bio</dt><dd>person's full-text bio, spans multiple lines, , starts on same line text <q>bio</q>, previous definitions. given solution should both allow text wrap below <dd> , provide 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, spans multiple lines, , starts on same line text “bio”, previous definitions. given solution should both allow text wrap below <dd> , provide line break afterwards.
phone: (555) 123-4567
i've tried using dt,dd{display:inline}
, caused all definitions displayed on 1 line eachother.
i've reviewed how style dt , dd on same line? , resulted in more tabular layout, won't work in case.
ok works way wanted. fixed wazaminator code works across browsers. problem few browsers add margin-start dds. didn't test in ie:
dt { float: left; clear: left; margin-right: 5px; font-weight: bold; } dd { margin-left: 0px; }
Comments
Post a Comment