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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:43:01+00:00 2026-06-08T04:43:01+00:00

I am trying to write a mobile application that has images instead of buttons

  • 0

I am trying to write a mobile application that has images instead of buttons as links.

How do I style this image link so that when it is pressed the image glows or appears darker or moves slightly or grows slightly bigger?

In my research on the internet I found the ui-btn class which has ui-btn-down-a, ui-btn-up-a and ui-btn-hover-a.

However in my case, this not a button, it’s an image which is a link.

How can I apply the effects?

UPDATE:

A good place to obtain transformation is http://westciv.com/tools/transforms/index.html

<div data-role="page" data-theme="a">
    <div data-role="content" data-theme="a">
        <a ontouchstart="" href ="wwww.yahoo.com"; class="ui-link-test">
            <img class="icon" src="img/icon.png" alt="black-button.png">
        </a>
    </div>
</div>

Haradhania

  • 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-08T04:43:03+00:00Added an answer on June 8, 2026 at 4:43 am
    • Glows: use box-shadow
    • Appears darker: change the background a bit or apply a mask (mask could be a pseudo-element over it);
    • Moves slightly: change margin or use a translate transform;
    • Grows slightly bigger: change width and height or use a scale transform;

    For the second two, I’d recommend transforms. They are supported by Android and have the advantage that moving or scaling the link won’t disturb (= move) the elements around it.

    Demo (keep mouse button pressed to see effects)

    Relevant CSS:

    .glow:active { box-shadow: 0 0 15px #fe0; }
    .darker:active { background: goldenrod; }
    .move:active { margin-left: 50px; } /* moves elements at its right */
    .move2:active { transform: translateX(15px); }
    .bigger:active { width: 120px; height: 66px; } /* moves alements after it */
    .bigger2:active { transform: scale(1.1); }
    

    NOTE: For transforms you need to add the prefixed versions before the unprefixed version as no current version of any browser supports the unprefixed version (IE 10 and Firefox 16 have been announced to support transforms unprefixed):

    .move:active {
        -webkit-transform: translateX(15px); /* the one you need for Android */
    
        /* if your app is ONLY for Android, you can leave the next three out */
        -moz-transform: translateX(15px);
        -ms-transform: translateX(15px);
        -o-transform: translateX(15px);
    
        transform: translateX(15px); /* always write it last */
    }
    
    .bigger:active {
        -webkit-transform: scale(1.1); /* the one you need for Android */
    
        /* if your app is ONLY for Android, you can leave the next three out */
        -moz-transform: scale(1.1);
        -ms-transform: scale(1.1);
        -o-transform: scale(1.1);
    
        transform: scale(1.1); /* always write it last */
    }
    

    Same thing is valid if you want smooth transitions:

    a.ui-link-test {
        -webkit-transition: .5s; /* the one you need for Android */
    
        /* if your app is ONLY for Android, you can leave the next three out */
        -moz-transition: .5s;
        -ms-transition: .5s;
        -o-transition: .5s;
    
        transition: .5s; /* always write it last */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write a simple application that runs on a Windows Mobile
My boss has big dreams. He wants to write an application that runs on
I am trying to write an API for a mobile application. I would like
I'm trying to write a simple app that should mute my mobile phone for
I have a mobile platform that I am trying to write some communications code
I'm trying to write an app that can turn my mobile data connection on
I'm trying to write a mobile substrate tweak to modify the default font color
I am trying to write code for getting my cords on the mobile. I
I am trying write a script where when a user clicks on a link,
I m trying write code that after reset set up rrpmax as 3000. It

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.