Multiple Row UL | Multi-Line List | CSS | HTML
Last Updated on Tuesday, 08 November 2011 19:15 Written by Nicholas Dunbar
I wanted to have a list where each element wrapped according to its containers dimensions. Lets start first with the problem I had, then move on to the solution.
so you have something like the below list (which has a bounding box in orange) but the list (UL, LI) extends out of the box.
<p>So if you want the list to conform to the box and put as many list elements (LI) on each row or line..</p>
<p>you can do this:</p>
So if you want the list to conform to the box and put as many list elements (LI) on each row or line..
you can do this:
The HTML and CSS are as follows for this multi-row list:
This did not work in all browsers so I made the following modifications:
And then you can apply it to HTML like this:
I hope this helps
Set as favorite
Bookmark
Email This
Hits: 1320
Trackback(0)
Comments (1)

Write comment