Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8980501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:06:13+00:00 2026-06-15T20:06:13+00:00

What I am trying to do is to create a position-able layout by dragging

  • 0

What I am trying to do is to create a position-able layout by dragging and dropping it on the page. If you know how Adobe products’ or Visual Studio’s tool panels can be re-arranged on the screen then you might have a clue on what I am about to demonstrate.

This is initially made for improving jsbin’s code editor layouts but it will be open-source and will be able to get used by any project.

In my experiment I have 5 columns that are divs. Which are laid out like this:

+------+------+------+------+------+
|      |      |      |      |      |
|      |      |      |      |      |
|      |      |      |      |      |
|      |      |      |      |      |
|      |      |      |      |      |
|      |      |      |      |      |
+------+------+------+------+------+

I want any of them to be dragged and put below another div and even below two divs like so:

+------+------+------+
|      |      |      |     
|      |      |      | 
|      |      |      |  
|      |      |======+ 
|=============|      |   
|             |      | 
+------+------+------+

I also want them to be resizable on the inner edges so that they can be adjusted to fit any comfortable layout.

There are several approaches I have taken to this.

  1. http://jsfiddle.net/weaponxi/Y9cyU/ : I tried placing placeholders that divided each column into four pieces (left half right half and top half bottom half) so that when dragged and dropped they would get half the size of the dropped element (either bottom/top or left/right). It seemed it could have been problematic though, since the placeholders overlapped and wasn’t sure if it would be easy to drop it to the right container… As I was working on this I had another idea that I wanted to try.

  2. http://jsfiddle.net/weaponxi/nUMxn/ : I remembered that there was a plugin called ui layout for jQuery. I tried that but saw that it wasn’t efficient enough for the purpose. Not only that I will have to write a drag/drop function for a plugin that has unfamiliar code to me, they can only divide a space into left center and right panels… I quickly moved on to another approach.

  3. http://cssdeck.com/labs/3otgmqz5/0 : This one was a shot in the dark. It is another plugin that I found called Gridster for jQuery. It basically gives you a grid that you can move the boxes around. I thought I could add a resize option to make it work (although it would have the whitespace of the grid due to the none-perfect space occupation from re-sizing) It could have worked but it wasn’t acting as it supposed to (I must have done something wrong because it re-sizes only when you quickly shake the box while “re-sizing” or it starts dragging it)

  4. This is just an idea that I haven’t tried… Maybe working with tables would be better since I can split a cell easily (in theory). And they will always be adjacent to one another. The only problem could be dragging: When dropped, how would it know if it was going for the left/right or top/bottom ? Those place holders overlap as seen on snippet 1.

What approach should I take when attempting something like this? Are any of these ideas usable? I appreciate all the input.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:06:15+00:00Added an answer on June 15, 2026 at 8:06 pm

    Take a look at Gridster. There’s a nice example here (http://jsfiddle.net/PrtrR/2/embedded/result/) of a draggable and resizeable layout.

    The project is well documented, so you should be able to be up and running in no time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a function which will give me alphabet position when
I'm trying create one Framelayout that contains a child Framelayout, I'm not able to
I'm trying to create this layout. I would like the layout to be accessible
I'm trying to create simple login/registration page. I'm using index.php which includes login.php in
I'm trying to create a list of products using a <table> since it's basically
I am trying to create a fluid/responsive layout where the same HTML would render
I'm trying to create my own custom parallax plugin so that I am able
Iam trying to create a java program in which, i will be able to
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
I am trying create a delegate representation of constructor by emitting a Dynamic Method,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.