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 3619644
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:54:14+00:00 2026-05-18T22:54:14+00:00

you can see my code right here: http://jsfiddle.net/Pghqv/6/ i have 3 black bars that

  • 0

you can see my code right here: http://jsfiddle.net/Pghqv/6/

i have 3 black bars that can be dragged and dropped. they even snap to each other when they are close enough – that’s exactly what i want to have.

the last feature i want to add is that it’s not possible to stack to bars over each other. Kind of a hittest, whenever an element is dragged upon another one and the mouse is released it should snap to the outer edges of the bar underneath.

any idea how i can make that work?

thank you for your help!

  • 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-05-18T22:54:14+00:00Added an answer on May 18, 2026 at 10:54 pm

    I think you may have better results if you use “sortable”, along with a “grid”. See here: http://jqueryui.com/demos/sortable/#option-grid

    Description: grid Default:false
    Snaps the sorting element or helper to a grid, every x and y pixels. Array values: [x, y]

    Try this:
    http://jsfiddle.net/LN2rQ/

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

Sidebar

Related Questions

Note: Please see demo code here: http://jsfiddle.net/ginja/5yp7D/ I have a set of objects that
This is a fairly weird case, you can see the code here: http://jsfiddle.net/zpZtH/2/
Here you can see the code: http://jsfiddle.net/LQSK3/1/ I can't get display: inline; working there
In the code below and demo here http://jsfiddle.net/jasondavis/vp2YN/3/ you can see I need to
Here is my code http://jsfiddle.net/AB6J3/7/ you can see, edit, etc. When I roll over
Please see working code here: http://jsfiddle.net/hrnDG/6/ I would like to modify this code so
I have updated the code I am working on here http://jsfiddle.net/dFfJm/ At the first
Here you can see what I'm trying to do: http://jsfiddle.net/smogg/QFa4J/2/embedded/result/ I was trying to
I have problem with simple jquery sliding menu, here is my code: http://jsfiddle.net/kCK44/1/ what
As you can see in the following Fiddle: http://jsfiddle.net/EvWc4/3/ , I'm currently searching a

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.