Results 1 to 2 of 2

Thread: dragable elements a way to make them show up closer together?

  1. #1
    Join Date
    Jul 2011
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default dragable elements a way to make them show up closer together?

    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...

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    <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:

    Code:
    <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>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •