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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:59:56+00:00 2026-05-30T22:59:56+00:00

EDIT Hi, I have a project where I want to make a mobile web

  • 0

EDIT

Hi,
I have a project where I want to make a mobile web app with Jquery mobile.
The problem I have is that when I am making a button with a custom button icon, I always get the plus icon. My custom icon is a PNG8 icon

This is what I do in my CSS

.ui-icon-myapp-phone { 
    background-color:#FFFFFF;
    background-image: url(images/phoneIcon.png);
}

And I call it like this in my html.

<a href="index.html" data-role="button" data-icon="ui-icon-myapp-phone">Contacteer klant via telefoon</a>

greetz

  • 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-30T22:59:58+00:00Added an answer on May 30, 2026 at 10:59 pm

    You will have to overwrite some more CSS.

    I’m doing it like this (using my own iconsprite). Feel free to patch it to your needs:

    /* lo-res */
    .ui-icon, .ui-icon-searchfield:after {
        background: #666 /*{global-icon-color}*/;
        background: rgba(0,0,0,.4) /*{global-icon-disc}*/;
        /* your sprite URL or single icon URL */
        background-image: url(../images/icons/custom-icons-18-white.png) /*{global-icon-set}*/;
        background-repeat: no-repeat;
        -moz-border-radius: 9px;
        -webkit-border-radius: 9px;
        border-radius: 9px;
        }
    
    /* hi-res */
    @media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min--moz-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 240dpi) {
    
       .ui-your-icon-1, .ui-your-icon-2,... {
                background-image: url(../images/icons/custom-icons-36-white.png);
                /* IE-handle hack, serve lo-res */
                #background-image: url(../images/icons/custom-icons-18-white.png);
                /* your lo-res icon size dimenstions! One icon 36x18px, 50 icons 1800x18... */
                -moz-background-size: 1800px 18px;
                -o-background-size: 1800px 18px;
                -webkit-background-size: 1800px 18px;
                background-size: 1800px 18px;
                }
       }
    
       /* your individual icon background position */
      .ui-your-icon-1   {background-position:       0px -50%;}
      .ui-your-icon-2   {background-position:     -36px -50%;}
      ... 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 (Edit) mutually exclusive IEnumerables that I want to iterate over. I
In TFS 2010 I have a project and I want to make only a
In my solution I have several library projects. I want that each library project
I have a project versioned with Git that I'd like to make open source,
EDIT: I have edited my post... Working on a project (c#), I have a
EDIT: I have realized the source of my problem. I only have count information
I won't want to have edit any working sets. I just want a way
I have to edit my question just to make it clear. What I need
I have a edit in place section to which I want to add a
I have just a simple question ! Basically, I want to make a website

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.