Sorry, just realized this may be misleading.  jQuery UI "Sortable"
allows you to REORDER items in a list.  I am looking to have a user
drag/reorder items in a table, basically.

On Mar 3, 4:20 pm, Sam H <samh1...@gmail.com> wrote:
> I know you can't actually sort tables, it's kinda broken.  I can
> easily sort UL lists, but whenever I try to use float: left and width:
> XXXem to give set widths to each span, e.g.:
>
> <li><span class="id">32</span> <span class="name">Bob Jenkins</span></
> li>
>
> #list li {
>         clear: left;}
>
> #list li span {
>         float: left;
>         background: #ddd;
>         margin: 1px;}
>
> #list li span.id {
>         width: 2em;}
>
> #list li span.name {
>         width: 12em;}
>
> #list li span.desc {
>         width: 12em;
>
> }
>
> Well, the "float: left" seems to break sortable().  If I remove the
> float left, it works fine.
>
> How do I make each SPAN an exact set width?  The only thing that seems
> to work is float:left combined with setting the 'width'.  I'm just
> trying to make my UL look like a table so sortable() will work.
>
> Thanks..

Reply via email to