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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:37:05+00:00 2026-06-17T08:37:05+00:00

I’m having some troubles solving this issue. I’ve looked at some other related questions

  • 0

I’m having some troubles solving this issue. I’ve looked at some other related questions but none of those solutions worked for me.

this.$el.sortable({
    placeholder: 'ui-state-highlight',
    connectWith: '.connectedList',
    dropOnEmpty: true
});

Despite trying some of the CSS-tricks that was posted in other solutions, the items are still pushed down as seen by this image:

example

You can see an example of the code here: http://jsfiddle.net/jxFBj/1/

  • 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-17T08:37:06+00:00Added an answer on June 17, 2026 at 8:37 am

    I’d say the source of the problem is the vertical alignment of inline elements, which is baseline by default. Though it’s the mix of inline and (inline-)block elements and the use of margin that finally triggers the problem. I guess it’s debatable what the actual origin of the problem is.

    Anyways, I can’t tell for sure what’s going on, but to me it looks like the placeholder (which has no inline content) changes the position of the baseline (not sure why exactly), and so the position of the images, which are inline elements by default, changes too.

    There are a few ways to fix this:

    Making the images block elements:

    .sortableList-item img {
        display: block;
    }
    

    Update (13.01.2015): with recent browsers the display trick seems to have the same problem as the vertical-align one mentioned below, ie the elements do shift horizontally.

    http://jsfiddle.net/jxFBj/2/

    Using floating elements instead of inline blocks:

    .ui-state-highlight {
        float: left;
        height: 100px;
        width: 100px;
        margin-right: 10px;
        margin-bottom: 10px;
    }
    
    .sortableList-item {
        float: left;
        margin-right: 10px;
        margin-bottom: 10px;
        width: 100px;
        height: 100px;
    }
    

    http://jsfiddle.net/jxFBj/3/

    Changing the vertical alignment to top works too, but will cause horizontal shifting when the list elements span over multiple lines, so that’s probably not an option:

    .ui-state-highlight {
        height: 100px;
        width: 100px;
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 10px;
        vertical-align: top;
    }
    
    .sortableList-item {
        display: inline-block;
        margin-right: 10px;
        margin-bottom: 10px;
        width: 100px;
        height: 100px;
        vertical-align: top;
    }
    

    http://jsfiddle.net/jxFBj/4/

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

Sidebar

Related Questions

I know there's a lot of other questions out there that deal with this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.

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.