Super HTML Lists
Using ul and ol for lists with XHTML is nice, but for lists that include a short title, dl is a great option.
The code below produces a nice list, where Term and Word are bolded, and Definition and Value follow on the same line.
<style type="text/css">
dt{clear:left;float:left;width:50px;font-weight:bolder;}
</style>
<dl>
<dt>Term</dt>
<dd>Definition</dd>
<dt>Word</dt>
<dd>Value</dd>
</dl>
Print article | This entry was posted by elvis on 01/24/09 at 02:25:50 pm . Follow any responses to this post through RSS 2.0. |