Hey everyone,
I have a tricky problem.
I have the following HTML:
<div id="lines">
<ul>
<li>
<input type="radio">
<ul class="col2">
<li>Some text</li>
<li>More text</li>
</ul>
<ul class="col3">
<li><pre>Other text</pre></li>
<li><pre>Yet more</pre></li>
</ul>
</li>
</ul>
</div>
The HTML can contain any number of list item (LI) in any of the lists, and not always an equal number in the inner two.
Now, I want to get them to display as if they were three columns, input being the first, .col2 being the second, and .col3 the third.
The first and second column (input and .col2) both have fixed width. The third column has a variable width. Also, the third column has each LI in a single line (with the div having an overflow: auto). That is the reason for the <pre> (if you know how to do this purely in CSS, please let me know).
Each outer LI should be cleared from the previous line.
Anyone have any ideas?
Here is what I have so far: http://www.arwebdesign.net/test.html (also a place to play with if you have a plugin that lets you tweak it).
I’m mainly concerned with more standards-compliant browsers like Firefox for now. I can figure out something for IE later.
Thanks.
-Christian