PDA

View Full Version : dragable elements a way to make them show up closer together?



rytis
09-05-2011, 03:55 AM
1) Script Title: dragable elements

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/image3.htm

3) Describe problem:
Is there a way to have the elements (images) come up in several columns or something so that it would not be such a big row down, because I want to use about 20 elements and the page becomes long? it's kind of hard to drag it and scroll all the way up with it,

Actually I see now that in the original page the two taxis originaly show up aligned horizontaly and not verticaly. even that would work better I think, somehow to have the elements show up more in a bunch/square rather then row...

jscheuer1
09-05-2011, 04:36 PM
If it's images you want and you want them horizontally, just give them the class="drag". They only stack vertically if you give the class="drag" to a division or put a <br> tag after the img tag:


<html>
<head>
<!--drag engine code installed here-->
</head>
<body>
<img src="test.gif" class="drag">
<img src="test2.gif" class="drag">
<h1><b>"Hi there</b></h1>
</body>
</html>

Not:


<html>
<head>
<!--drag engine code installed here-->
</head>
<body>
<img src="test.gif" class="drag"><br>
<img src="test2.gif" class="drag"><br>
<h1><b>"Hi there</b></h1>
</body>
</html>