How to break up an HTML List using CSS Only


Tags: css,html-lists

Problem :

I would like to create a list that adds columns as necessary depending on how many list elements are present. Currently I only know how to do this using a table, which I would like to avoid. Is there a way to do this using CSS only?

I have created an example of how I currently do it with tables on JSFiddle.net ...

http://jsfiddle.net/9W33K/



Solution :

There is a pretty thorough (albeit a bit older) guide I've looked at before here: CSS Swag: Multi-Column Lists


    CSS Howto..

    How to apply custom css to split post into multiple page

    How to manage custom CSS?

    How to set vertical align middle for a div enclose another div

    JS manipulation on CSS and how it result on page rendering

    Prevent div from showing after slideUp() - jQuery

    How can I get IE7 to see an HTC file in the same directory as my CSS?

    how to place last div into right top corner of parent div? (css)

    How to vary color of table row border based on div that it's in

    How to create a border gap illusion

    How do I add a mouseover drop shadow effect for circular images?

    How to check multiple conditions within a td in Angular table?

    How to change width of object in mobile version

    Shadow-Piercing descendant combinator, '/deep/' , including '::shadow' pseudo elements, are being deprecated so how do we pierce the Shadow DOM?

    How do I use CSS to add a non-rectangular border around an image?

    Pure JavaScript - how to add class to a class? Or change style in class

    How to increase the height of footerrow in jqgrid

    How to prevent mobile device to resize and use proper css file

    CSS: How to position two elements on top of each other, without specifying a height?

    CSS: How to fit a circular progress bar according to screen size (mobile)

    how do I use the :valid and :invalid selectors for css?

    How to convert list of buttons to radio buttons based on row overflow?

    How to create the + button with CSS?

    Using CSS, how can I style a div tag to full the width, even when the viewport is scaled?

    How to create automatic image gallery slideshow by using HTML,CSS and JavaScript

    How to make an inline element appear on new line, or block element not occupy the whole line?

    CSS How to make DIV Border Dynamic in Width

    How to get full height of webpage with CSS?

    How to access CSS generated content with JavaScript

    How to make an image 'pop out' when page is loaded (using jQuery or possibly CSS transitions)

    How to use Bootstrap Glyphicons in Holder.js images