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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:31:15+00:00 2026-06-14T00:31:15+00:00

I am trying to create a custom button with Jquery Mobile 1.2. My button

  • 0

I am trying to create a custom button with Jquery Mobile 1.2. My button displays but with the existing custom rounded default button. I need button to display like this.
https://i.stack.imgur.com/vU0J8.png

https://i.stack.imgur.com/NHgVp.png

#homepage .my-button {
background-image: url('../images/icons/btn_panel.png') !important;
width:307px;
height:50px;
padding-top:0px auto;
}

#homepage  .ui-icon-about-icon {
border-radius:0px;
background-image: url('../images/icons/about_up.png');
background-color: rgba(0, 0, 0, 0);
width:36px;
height: 36px;
}

<div data-role="content" class="content">   
     <a href="about.html" data-transition="fade" data-role="button" data-icon="about-icon" data-iconshadow="false" class="my-button">About</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-14T00:31:16+00:00Added an answer on June 14, 2026 at 12:31 am

    I would look at the docs for buttons:

    • http://jquerymobile.com/demos/1.2.0/docs/buttons/buttons-options.html

    Live Example:

    • http://jsfiddle.net/Pjvvx/ (Width)
    • http://jsfiddle.net/3DSGT/ (Height)

    JS:

    // For all buttons use something like this
    $('.ui-btn').css('width','50%');
    
    // For individual buttons use something like this
    $('#theButton1').parent().css('width', '75%');
    
    // Or this for HREF data-role buttons
    $('#hrefButton4').css('width', '45%');
    

    I think this is what you’re looking for

    // this changes the height for all buttons
    $('.ui-btn-text').css('font-size','50px');
    
    // This changes the height for a single element 
    $('#hrefButton3').children().children().css('font-size','30px');
    

    HTML:

    <div data-role="page" id="home"> 
        <div data-role="content">
            <input type="button" id="theButton1" value="Press Me 1" />
            <input type="button" id="theButton2" value="Press Me 2" />
            <input type="button" id="theButton3" value="Press Me 3" />
            <input type="button" id="theButton4" value="Press Me 4" />
            <br />
            <a href="#" data-role="button" id="hrefButton1">HREF Me 1</a>
            <a href="#" data-role="button" id="hrefButton2">HREF Me 2</a>
            <a href="#" data-role="button" id="hrefButton3">HREF Me 3</a>
            <a href="#" data-role="button" id="hrefButton4">HREF Me 4</a>
        </div>
    </div>
    

    Related:

    • resizing a BUTTON through CSS
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a custom usercontrol that acts like a button, but i
I'm trying to create custom attributes to my button but I dont know which
I was trying to create a custom button, but after setting the image, I
I'm trying to create a custom tweet button with a popup, this part works.
I'm trying to use this tutorial to create a jQuery Slider with a custom
I am trying to create a jQuery UI button with a custom icon on
I'm trying to create a login system for my jQuery mobile app but it's
I am trying to create a custom html button on my page using this
I'm trying to create a custom button where the foreColor is always crimson and
I'm trying to change the back button to a custom one. If I create

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.