as ronpat pointed out, the only VALID direct child of a UL or OL is an LI. So wrapping your LIs in DIVs is a nono. Ron's suggestion is valid, and logically acceptable ;except perhaps in the case of an ordered list in which your count would reset... but there are HTML ways around this too.
CSS3 offers columned layout, however support is still spotty and somewhat buggy.
IF you know can anticipate the height of each LI ( lets say you know you text isnt going to wrap, for example, so all LIs are the same height) you could do this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<style type="text/css">
#MyList {width:500px; list-style:none; margin:0 auto 0 auto; border:1px solid red}
#MyList li {list-style-type:none; width:250px; height: 3ex}
#MyList li label{width:200px; padding:2px 10px 0 8px; display:inline-block;}
.seccol , .seccol ~ li {margin-left: 250px;}
.seccol { margin-top: -15ex;}
</style>
</head>
<body>
<ul id="MyList">
<li><input id="i1" type="checkbox" /><label for="i1">A- Item List</label></li>
<li><input id="i2" type="checkbox" /><label for="i2">B- Item List</label></li>
<li><input id="i3" type="checkbox" /><label for="i3">C- Item List</label></li>
<li><input id="i4" type="checkbox" /><label for="i4">D- Item List</label></li>
<li><input id="i5" type="checkbox" /><label for="i5">E- Item List</label></li>
<li class="seccol"><input id="i6" type="checkbox" /><label for="i6">F- Item List</label></li>
<li><input id="i7" type="checkbox" /><label for="i7">G- Item List</label></li>
<li><input id="i8" type="checkbox" /><label for="i8">H- Item List</label></li>
<li><input id="i9" type="checkbox" /><label for="i9">I- Item List</label></li>
<li><input id="i10" type="checkbox" /><label for="i10">J- Item List</label></li>
</ul>
</body>
</html>
That should cover most modern browsers. For even broader support, of course, you could replace .seccol ~ li with a class, '.col2item' for example. and add "class='col2item'" to each LI AFTER the one with class "seccol".
Hope that helps
Bookmarks