L
L
lavezzi12015-10-28 09:24:47
JavaScript
lavezzi1, 2015-10-28 09:24:47

Can't parse sortable?

Hello colleagues! The question is why the placeholder is correctly displayed only when there is such an #items li entry, that is, the style is assigned directly to the li tag. If you assign a style to li, let's say .item, then the placeholder is obtained without a height. The same if the markup is done not through ul>li, but simply by divs. In order for the placeholder to be displayed correctly, you need to write like this #items div {}, etc. What do I not understand?

codepen.io/anon/pen/PPQNJG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fastec, 2015-11-05
@fastec

As far as I can tell, this is because jQ creates a container with a highlight class. And the container tag depends on the tag used for sorting. As a result, it turns out that the same styles are applied to the placeholder as to the image itself. Here, I tried on take.ms/5OsA7 divs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question