Forum How do I...?

definition lists: putting term and definition on the same line.

danielm
I have a definition list and wish the definition to be placed on the same line as the term (see attached example). I tried floating them, which works in browsers; but in Prince the definitions get further and further indented (if I float the dd; if I display:inline it then it shows up in the wrong line).

When I then add column-count:2 it flows over the content that follows after the list (which it probably isn't supposed to do). (The browsers tend to more or less ignore column-count, so the behaviour cannot be compared.)
  1. example.html1.2 kB
  2. example.pdf19.8 kB
danielm
Nevermind. Managed to get it to work by floating neither dt nor dd but inlining both with dd:after{content:"\A";white-space:pre;} to ensure that the next dt is on a new line.
  1. example.html1.0 kB
  2. example.pdf19.8 kB