Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (27 loc) · 823 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 823 Bytes

Warning

As 2023 this repository is deprecated in favor of CSS Multi-column Layout now widely supported on all major browsers.

MultiColumnList

MultiColumnList automatically creates multi column lists out of ul elements. It depends on the Mootools (1.2+ framework) but can easily be decoupled for other javascript frameworks.

Usage

Create (or generate) a list like this:

<ul class="columnList columnAmount[4]">
	<li>content here..</li>
	etc..
</ul>

Set a width for the columns in CSS

/* for all instances */
.columnList li {
	width: 220px;
}

/* for specific instances */
#myList li {
	width: 350px;
}

At the bottom of your page place:

<script type="text/javascript">
	new multiColumnList();
</script>