djfenom
06-29-2004, 12:57 PM
I'm trying to create a vertical unordered list that displays the order from top to bottom and then starts a new column after say 5 items have been displayed.
Something like this:
HTML
<ul>
<li>Michael Spencer</li>
<li>Christopher Purchas</li>
<li>Michael Harvey</li>
<li>John Slater</li>
<li>Antony Edwards</li>
<li>Roger ter Haar</li>
<li>Andrew Bartlett</li>
<li>Simon Brown</li>
</ul>
CSS
li {
display:block;
padding:2px 15px;
width:30%;
float:left;
text-align: left;
background-image:url(images/bullet.gif);
background-repeat:no-repeat;
background-position: 0px 6px;
}
At present, this displays something like this with the order going from left to right:
Michael Spencer --- Christopher Purchas --- Michael Harvey
John Slater -------- Antony Edwards ------ Roger ter Haar
Andrew Bartlett ---- Simon Brown
What I would like is the order going from top to bottom and after about 5 items have been displayed, the order carries on into the next column:
Michael Spencer ------ John Slater -------- Andrew Bartlett
Christopher Purchas --- Antony Edwards --- Simon Brown
Michael Harvey -------- Roger ter Haar
I'm not entirely sure this is possible, but if anyone could help, that would be great.
Thanks
Chris
Something like this:
HTML
<ul>
<li>Michael Spencer</li>
<li>Christopher Purchas</li>
<li>Michael Harvey</li>
<li>John Slater</li>
<li>Antony Edwards</li>
<li>Roger ter Haar</li>
<li>Andrew Bartlett</li>
<li>Simon Brown</li>
</ul>
CSS
li {
display:block;
padding:2px 15px;
width:30%;
float:left;
text-align: left;
background-image:url(images/bullet.gif);
background-repeat:no-repeat;
background-position: 0px 6px;
}
At present, this displays something like this with the order going from left to right:
Michael Spencer --- Christopher Purchas --- Michael Harvey
John Slater -------- Antony Edwards ------ Roger ter Haar
Andrew Bartlett ---- Simon Brown
What I would like is the order going from top to bottom and after about 5 items have been displayed, the order carries on into the next column:
Michael Spencer ------ John Slater -------- Andrew Bartlett
Christopher Purchas --- Antony Edwards --- Simon Brown
Michael Harvey -------- Roger ter Haar
I'm not entirely sure this is possible, but if anyone could help, that would be great.
Thanks
Chris