Hi there
I'm currently facing an interesting CSS issue for which I couldn't find anything related on the web. I know it must be solvable, perhaps you guys crack the nut.. (?)
Following problem: I need to display some icons in front of an image positioned at the bottom left. As the number of icons can vary, the icons are floated next to each other (max. three per row - defined by the width properties).
Here's my HTML code (the div containing the icons is positioned absolute over an image):
<div class="labels">
<ul>
<li><img src="image1.png" /></li>
<li><img src="image1.png" /></li>
<li><img src="image1.png" /></li>
<li><img src="image1.png" /></li>
<li><img src="image1.png" /></li>
</ul>
And the related CSS:
.labels { position: absolute; bottom: 20px; left: 5px; z-index: 50; }
.labels ul { display: block; min-height: 20px; overflow: auto; width:210px; }
.labels ul li { float: left; list-style-type: none; margin: 0 5px 3px 0; }
To get you a picture what it looks like and what the goal is i've scratched it up for you: see here (I'm not allowed to upload images..): link text
As you can see the icons are floated left, but obviously starting at the top. That's not nice, because I want the floating kind of reverse starting from the bottom left, filling the width of the ul-element and continue the floating on the next row up.
Any idea how to solve this? Any help is highly appreciated!!