One feature I remember fondly from Internet Explorer is the ability to create compact definition lists using code like this:
<dl compact>
<dt>f</dt>
<dd>Firefox</dd>
<dt>i</dt>
<dd>Internet Explorer</dd>
</dl>
Here is how it used to look:
https://i.sstatic.net/VBain.png
Unfortunately, none of the current browsers support this feature anymore. Even MDN does not list the element as deprecated.
Now, Firefox displays the definition details below the term instead:
https://i.sstatic.net/dydNF.png
I attempted a CSS solution like this:
dl>dd {
margin-top: -1em;
}
Although it almost works, the term and details don't align perfectly:
https://i.sstatic.net/4bn0N.png
Is there a CSS (or alternative) solution that can replicate the appearance of the Internet Explorer <dl compact>
without relying on tweaking margins?