JQuery sortable not working with floats

I am trying to move one list item from one side to the other. However, this does not seem to work. I can move list items from left to right, but not vice versa. The left side has a float: left in the CSS sheet. If I remove this, everything seems to work. How can i fix this?

Is anyone

+3
source share
2 answers

The problem is only partially related to your CSS. When you swim: left by UL, it does not appear as a block. A quick fix is ​​to use the standard clearfix paradigm:

#newsLayout ul {display:block;overflow:hidden}
+14
source

float: left LI List1 display: inline-block.

jQuery UI, , .

http://jqueryui.com/demos/sortable/#connect-lists

+5

All Articles