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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:19:24+00:00 2026-06-03T20:19:24+00:00

I am working on an app for a client and am trying to create

  • 0

I am working on an app for a client and am trying to create a button with a completely custom icon. The icon is 30px x 30px and transparent in the middle.

I have almost achieved what I want using this css code:

/* info button override */
.ui-icon-info-page {
    background: url(images/G_help_icon_round.png) 50% 50% no-repeat;
    background-size: 30px 30px;
    background-color: black;
}

But there is a thin black circle that appears inside the icon, and also the icon image appears to be cut off:

enter image description here

I want to remove this circle and prevent the icon ? from being cut off. Also, I would like the question mark to be transparent instead of black, to show the image of the navigation bar beneath. If I try to set the background color to transparent though, the button appears entirely white:

enter image description here

How can I do this?

Update:

I tried applying this code:

/* info button override */
.ui-icon-info-page {
    background: url(help.png) 50% 50% no-repeat;
    background-size: 30px 30px;
    width: 30px;
    height: 30px;
    margin-top: -15px !important;
    box-shadow: none;
    -webkit-box-shadow: none;
}

And got this result:

enter image description here

I’m able to move the icon around by adjusting the top and left margins, but it’s edges are cut off outside a frame centered on the black circle:

enter image description here

Update 2:

Here is the button I am using (Note that it is invisible here because it is a white button on a white background):

enter image description here

Here is the html code that I use to load the button:

<div data-role="header" data-position="fixed"> 
            <div><img border="0" src="images/G_iphone_navbar_logo.png" style="display:inline;"/> </div>          
            <a href="index.html" data-icon="refresh" class="ui-btn-left" data-transition="fade" data-iconpos="notext" data-theme="a"></a>
            <a href="info.html" data-icon="info-page" class="ui-btn-right" data-transition="flip" data-iconpos="notext" data-theme="a"></a>

</div>
  • 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-03T20:19:27+00:00Added an answer on June 3, 2026 at 8:19 pm

    This should fix the issue

    /* info button override */
    .ui-icon-info-page {
        background: url(help.png) 50% 50% no-repeat;
        background-size: 30px 30px;
        width: 30px;
        height: 30px;
        margin-top: -15px !important;
        box-shadow: none;
        -webkit-box-shadow: none;
    }
    

    Please ensure you are loading your application css file after jquery mobile css.

    Edit:Here is a sample code based on the code you posted with the issue fixed

    <!DOCTYPE html>
    <html>
        <head>
            <title>Page Title</title>
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" />
            <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
            <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
            <style>
                #rightBtn .ui-btn-inner {
                    width: 30px;
                    height: 30px;
                    margin: -3px;/*Modify to change icon position wrt the header*/
                    border: none !important;
                }
                .ui-icon-custom {
                    background: url(https://i.stack.imgur.com/AqicD.png) 50% 50% no-repeat;
                    background-size: 30px 30px;
                    width: 30px;
                    height: 30px;
                    box-shadow: none;
                    -webkit-box-shadow: none;
                    margin: 0 !important;
                }
            </style>
        </head>
        <body>
            <div data-role="header">
                <h1>Page Title</h1>
                <a href="index.html" data-icon="refresh" class="ui-btn-left" data-transition="fade" data-iconpos="notext" data-theme="a"></a>
                <a href="info.html" id="rightBtn" data-icon="custom" class="ui-btn-right" data-transition="flip" data-iconpos="notext" data-theme="a"></a>
            </div><!-- /header -->
    
            <div data-role="content"></div><!-- /content -->
    
            </div><!-- /page -->
    
        </body>
    </html>
    

    ​A demo here – http://jsfiddle.net/LCsmt/

    Let me know if that helps.

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

Sidebar

Related Questions

I am trying to create a SOAP client in my android app. I have
I am working on a simple Core Data app. I have two classes: Client
I'm trying to create a short term overlay notification for an app I'm working
I'm trying to create an Android client for a client/server app that has previously
I'm trying to write a custom validation method in my app - I have
I am working on making a twitter client app. One of the requirement of
A client im working for has created a web app that uses a password
I did heroku create and pushed a working rails app to the server. Everything
I'm working on an app in CodeIgniter, and I'm trying to make a field
I'm trying to write a client app using monotorrent library with asp.net. there is

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.