<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>CSS Lists</title>
<META Name="description" Content="Experimenting with CSS">
<META Name="keywords" Content= "CSS, cascading style sheets, list tags">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK REL="stylesheet" TYPE="text/css" HREF="/styles/standard.css">
</head>
<body>
<div align=center><p><br>
<table class="tableborder" width="600" border="0" cellspacing="0"
cellpadding="20">
<tr>
<td>
<!--#include virtual="/inc/top.html" -->
<p>
<!--   ~~~~~~~~~~~~~~~~~~~~~~~~ end header ~~~~~~~~~~~~~~~~~~~~~~~~ -->

<h1>CSS Lists</h1>

<h2>The Definition List</h2>

This definitation list presents the entries in a horizontal fashion. But 
you have to be careful and keep the DT short or else the whole thing wraps 
like a traditional DT.

<h3>Example</h3>
<dl class="list2">
<dt>Item 1
<dd>Aenean sem ipsum, fermentum nec, pellentesque a, tempor a, eros. 
Praesent
purus. Nulla feugiat mi vitae urna. Mauris sed lorem.

 <p>
<dt>Item 2 will be very long and need to wrap at some point so see what 
happens.
<dd>Phasellus risus. Quisque urna lectus, commodo ac,
egestas eget, consectetuer eu, ipsum.
</dl>



<table width="100%" class="tableborder" cellpadding="10">
<tr><td colspan="2"><h3>The Code</h3></td></tr>
<tr><td valign="top">
<b>The CSS</b>
<p>
<pre>
dl.list2 dt {
    float: left;
    clear: left;
    margin-right: 0.3em;
    font-weight: bold;
}
dl.list2 dd {
    margin-left: 5.5em;
}
</pre>

</td><td>
<p>
<b>The HTML</b>
<p>
<b>&lt;dl class="list2"&gt;</b><br>
<b>&lt;dt&gt;</b>Item 1<br>
<b>&lt;dd&gt;</b>Aenean sem ipsum, fermentum nec, pellentesque a, tempor a, eros.
Praesent purus. Nulla feugiat mi vitae urna. Mauris sed lorem.<br>
<b>&lt;p&gt;</b><br>
<b>&lt;dt&gt;</b>Item 2<br>
<b>&lt;dd&gt;</b>Phasellus risus. Quisque urna lectus, commodo ac,
egestas eget, consectetuer eu, ipsum.<br>
<b>&lt;/dl&gt;</b>

</td></tr></table>


<!-- ~~~~~~~~~~~~~~~~~~~~~~~~ footer ~~~~~~~~~~~~~~~~~~~~~~~~ -->
<p><br>
<!--#include virtual="/inc/foot.html" -->
<p>
</td></tr></table>
</div>
<!--#exec cgi="/cgi-bin/looker/ax.pl" -->
</body>
</html>


