Jump to content

Stumped!!! Making a multi-column unordered list on drag and drop script


Recommended Posts

Hello,

 

I am attempting to modify a script from the dhtmlgoodies.com website (http:///www.dhtmlgoodies.com/scripts/drag-drop-nodes/drag-drop-nodes-demo3.html) to create a custom calendar solution. My idea is to give the user a choice of 68 images in which they drag and drop one into each month plus a cover image. Unlike the example, I have used images instead of text boxes in the DragDropContainer and thus a list of 68 images (in a one column unordered list) is a lot of pixels on the page and not really conducive to an easy to use solution (I have explored the overflow options but dont want a scrollbar on the page). I therefore wish to create 4 columns of 17 images but have run into problems. If I create four seperate div's with 17 images in I lose 3 of the 13 separate containers in my MainContainer. Also, if I create 2 columns I lose 1 container and again if I create 3 columns I lose 2 containers.

 

I am looking for a solution that allows me to break up my DragDropContainer div into 4 columns whilst not losing any of my 13 containers.

 

I have posted two pages on my site, please view. The first (http://www.jamespaulphotography.co.uk/developmentcalendar.html) shows the the page layout with all the pallet images in one div, one column. It does overflow. Images can be dragged into all months with no problem. The second page (http://www.jamespaulphotography.co.uk/developmentcalendar2.html) is my attempt at using 4 divs to create the 4 columns. If you try and place an image inside October, November or December months in the MainContainer it will not take. I have also explored the option of trying to remove the unordered list and use positioning for each individual images without success.

 

Any help/suggestions is really appreciated as I am now stumped!!!. All the CSS, Javascript etc is in the one file and I hope that I haven't confused the issue even more.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.