I have to deal with dynamic code that is being outputted via php, and I have only css and javascript at my disposal to use.
I have a single column of list items (not using
The problem though, is that in the current setup, when a list item on the left column is tall, the shorter list item on the right gains a empty white space beneath it.
Is there a way to code the list into two columns without creating any unnecessary vertical space?
Here is a fiddle. Since you can use javascript I’m assuming you can load jQuery.
http://jsfiddle.net/manishie/r4zkp/3/
HTML:
CSS:
Javascript: