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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:51:14+00:00 2026-06-17T23:51:14+00:00

I have a .column class element that is sortable. I have two id’s in

  • 0

I have a .column class element that is sortable.
I have two id’s in that column:

<div id="column1" class="column ui-sortable">
<div id="column2" class="column ui-sortable">

I want there to be an open hand when moused over and a closed hand when dragged ONLY on column1.
If my CSS looks like this:

.ui-sortable{
    cursor: grab;
    cursor:-webkit-grab;
    cursor:-moz-grab;
    cursor: url(https://mail.google.com/mail/images/2/openhand.cur), default !important;
}
#column1 .ui-sortable-helper{
    cursor: grabbing;
    cursor:-webkit-grabbing;
    cursor:-moz-grabbing;
    cursor: url(https://mail.google.com/mail/images/2/closedhand.cur), default !important;
}

then the open hand shows on column1 and column2 and the closed hand shows on column1 being dragged. But since I only want an open hand on column1, I tried:

#column1 .ui-sortable{
    cursor: grab;
    cursor:-webkit-grab;
    cursor:-moz-grab;
    cursor: url(https://mail.google.com/mail/images/2/openhand.cur), default !important;
}

But this does nothing to column1. I get a default cursor. Why does adding the id work on .ui-sortable-helper, but not ui-sortable? How do I get the open hand to show up only on column1?

Thank you!

  • 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-17T23:51:16+00:00Added an answer on June 17, 2026 at 11:51 pm

    The CSS rule you need is:

    #column1.ui-sortable
    

    because you want to specify the element with the id ‘#column1’ which has the class ‘ui-sortable’, and not any element with the class ‘ui-sortable’ which is a child of ‘#column1’.

    Due to the discussion below I add some basic information about CSS classes and elements:

    <div id="column1" class="column ui-sortable">
    

    this element has one ID ‘column1’, you reference an ID in CSS via the # symbol + IDname, so in this case ‘#column1’. This element also has two classes ‘column’ and ‘ui-sortable’. In your case you wanted to apply CSS-rules only to this specfic element. Which you simpy could do by using the ID-Selector:

    #column1 { }
    

    In your question you used:

    #column1 .ui-sortable { }
    

    this would be interpreted as find an Element by the ID ‘#column1’ and all nested elements of this parent which have the class ‘ui-sortable’. No match – because the Element itself has the class, not a child. If you remove the space the CSS-Selector:

    #column1.ui-sortable { }
    

    it is interpreted as find an Element by the ID ‘#column1’ which hass the class ‘ui-sortable’ This might be a bit overweighted, because an id should be unique, but it solved your problem.
    The element with the class ‘ui-sortable-helper’ is a child of the div#column1 so here you’ll need the space.

    <div id="column1" class="column ui-sortable">
        <div class="ui-sortable-helper">
        </div>
    </div>
    

    So the selector has to have a space:

    #column1 .ui-sortable-helper { }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have class and I want to initalize column that stores pictuer with type
I have some JavaScript that toggles the class of the th element clicked to
I have an anchor element that uses a css class to basically replace the
I have an Entity like this: public class User { @Column(name = password) @Element(name
Here's my dilemma - I have a two-column list of elements (styled <div> s)
I have a rather simple (I think) class that I want to map: <class
I have a datagridview in which one column contains a custom class, which I
I have the following entities: @Entity public class Owner{ @Id @Column(name = OWNER_ID) @OneToMany()
Say I have the following class: class User(Base): __tablename__ = 'users' id = Column(Integer,
I have the following class: class Enum(RootFragment): def __init__(self, column, packageName, name, modifiers=[public], enumValues=[]):

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.