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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:31:18+00:00 2026-05-26T19:31:18+00:00

jQuery UI comes with some good icons. How can I use them without buttons?

  • 0

jQuery UI comes with some good icons.
How can I use them without buttons? Let’s say how to create link with plus sign and to react on hover and click by changing icons?
Here is the demo just with icon added.

Upd 1:
On hover icon should change the color from grey to black (please see it here). In my demo it is black from the beginning.

Upd 2:
Here is almost what I need – http://jsfiddle.net/and7ey/gZQzt/6/ – but without that background rectangle, I need just plus sign.

Upd 3:
Looks like it would be better not to use standard jQuery UI styles, but to refer directly to the images, but I don’t know how use it.

Seems I need to define CSS like:

width: 16px; 
height: 16px; 
background-image: url(images/ui-icons_222222_256x240.png);
background-position: -32px -128px;

Positions can be easily found at jquery.ui.theme.css file.
But how should I:

  1. define correct background-image url?
  2. modify CSS to react on click, hover?
  • 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-26T19:31:18+00:00Added an answer on May 26, 2026 at 7:31 pm

    Finally, I’ve decided just to use jQuery UI’s image files – How to use one icon from different image files?:

    a:link,a:visited { /* for regular non-hovered, non-active link styles */
        width: 16px;  
        height: 16px;
        background-image:
        url(images/defaultStateImage.png); 
        background-position: -32px -128px;
    }
    
    a:hover { /* for hover/mouse-over styles */
        url(images/hoverStateImage.png); 
        background-position: -32px -128px;
    }
    
    a:active { /* for click/mouse-down state styles */
        url(images/clickStateImage.png); 
        background-position: -32px -128px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have some good suggestions when it comes to authenticating clients using JQuery
I use jQuery to do AJAX calls. But specialchars like ÆØÅ (danish letter) comes
There are some decent JavaScript-based RTEs out there, but when it comes to jQuery
I've used jQuery for some months with good results, but today I'm facing something
I'm just starting to use jQuery and I'm having some trouble with something I
Hopefully someone can explain some odd behavior I've encountered with jQuery. The following script
I know jQuery does most when it comes to cross-browser issues. I just wanted
How does jquery handle event assignment when it comes to assigning the same handler
I'm buiding an HTML/jQuery site where almost all the content comes from remote JSON
I have some questions regarding calendars Is there any good calendar generates for either

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.