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

  • Home
  • SEARCH
  • 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 6021167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:40:25+00:00 2026-05-23T03:40:25+00:00

Wondering if anyone can help with this. I have a table with some fixed

  • 0

Wondering if anyone can help with this.

I have a table with some fixed width boxes. In between these boxes (cells) are cells that stretch to the width required to fill the space in between.

Basically what I’m trying to do is make it so that the fixed width boxes are sortable using jQuery UI’s sortable.

I’ve tried many things with jQuery UI sortable but just can’t get the desired effect. As you can see from the JSFiddle demo below the cells are sortable, but end up going next to each other when dragged, as they fit into the empty ‘spacer’ cell.

Is there any way to fix this? So that the blocks can be dropped into the correct area? and prevent the table from ‘jumping’ around..?

I tried disabling the ‘spacer’ cells but could not really understand how its done :/

Just a note: It’s vital that the table is able to expand to 100% width (like it does in the JSFiddle). I’m using a table as its the only stable way to get the blocks to space out nicely on a fluid width layout.

(The far right and left blocks need to be up against the end of the container)

JSFiddle: http://jsfiddle.net/JsJMH/

Any help would be really appreciated! Many thanks!

  • 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-23T03:40:26+00:00Added an answer on May 23, 2026 at 3:40 am

    Answer: http://jsfiddle.net/morrison/JsJMH/13/

    Notes:

    • Don’t abuse td elements. Empty table cells are usually pointless. I moved the box inside the td.
    • I had to edit a CSS rule. Sometimes people don’t notice that, so I thought I’d point it out.
    • This is very possible without using tables: http://jsfiddle.net/morrison/quneb/.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Wondering if anyone can help me with this annoying but trivial (in terms of
I was wondering if anyone could help me with this problem: I have to
I was wondering if anyone can help me get started with creating a room
I'm wondering if anyone can recommend a good C++ tree implementation, hopefully one that
Came across this error today. Wondering if anyone can tell me what it means:
Can anyone help, I have 2 applications and they are nearly identical. they have
well i have this messages table with sample values like these: msg_id recipient_id read
Wondering if anyone can help me understand how the localisation works with keywords. I
I was wondering if anyone could take a look at this code and help
Very new to Jquery and wondering if anyone can help me with the following

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.