Hello,
I am looking to create a single list that will maintain multiple columns. Here is the example I could come up with.
The above generates a 3-column list that populates columns properly. However, the entries go across the list rather down each column. Is there any way to generate a list where the entries go down the column? I have seen several methods where you split the list into multiple sublists or assign individual css classes to each element, but I am looking for a method to generate a list that would automatically adjust its length based on the length of the input and the specified number of columns. Is this possible?HTML Code:<ul style="width:18em;font-size:16px"> <li style="float:left;width:6em">Antelope</li> <li style="float:left;width:6em">Bison</li> <li style="float:left;width:6em">Camel</li> <li style="float:left;width:6em">Deer</li> <li style="float:left;width:6em">Eland</li> <li style="float:left;width:6em">Gazelle</li> </ul>
Thank you!


Reply With Quote

Bookmarks