I need to display multiple rows of data, with a title and corresponding data on the same line. While I have found answers on sites like SO (e.g. How to style dt and dd so they are on the same line?), the suggested solutions don't seem to work for my specific case. My current approach mostly works, except for when a DD has no content, which I fix with a character. I am targeting IE7+. Can someone confirm if my method is correct? Thank you!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style>
dl {width: 395px; font-size:12px}
dd,dt {padding-top:5px;padding-bottom:5px;}
dt {float:left; padding-right: 5px; font-weight: bolder;}
/* dd {padding-left: 5px;} Does not work */
</style>
</head>
<body>
<dl>
<dt>DT Element 1:</dt><dd>DD Elem 1</dd>
<dt>DT Second Element:</dt><dd>DD Element Two</dd>
<dt>DT Elem 3:</dt><dd></dd>
<dt>DT Element 4:</dt><dd>DD Elem 4</dd>
<dt>DT Fifth Element:</dt><dd> </dd>
<dt>DT Elem 6:</dt><dd>DD Element Six</dd>
</dl>
</body>
</html>