Title: Device Compatibility Issue
Last modified: February 21, 2022

---

# Device Compatibility Issue

 *  [amirkharu3e](https://wordpress.org/support/users/amirkharu3e/)
 * (@amirkharu3e)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/device-compatibility-issue/)
 *     ```
       <style>.rans:focus{background-color:green}.wans:focus{background-color:red;}</style>
       <button class="rans">A</button>
       <button class="wans">B</button>
       <button class="wans">C</button>
       <button class="wans">D</button>
       ```
   
 * I am using above “custom html” code to set up some buttons. My goal is to change
   button color if it indicates correct or incorrect answer. Above mentioned buttons
   are working perfectly on pc but on on android or iPhone devices.
 * How can I solve the issue?
    -  This topic was modified 4 years, 3 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: moved to fixing wordpress
    -  This topic was modified 4 years, 3 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdevice-compatibility-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Sadik Multani](https://wordpress.org/support/users/multanisadik/)
 * (@multanisadik)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/device-compatibility-issue/#post-15386245)
 * Hi [@amirkharu3e](https://wordpress.org/support/users/amirkharu3e/)
 * I’ve checked this in my android device and it’s working fine for me. but still,
   you can also add the **:active event with :focus** like below code:
 * `<style>.rans:focus, .rans:active{background-color:green}.wans:focus, .wans:active{
   background-color:red;}</style>`
 * Let me know it’s properly working or not for you after adding the above code.
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Device Compatibility Issue’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [html](https://wordpress.org/support/topic-tag/html/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Sadik Multani](https://wordpress.org/support/users/multanisadik/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/device-compatibility-issue/#post-15386245)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
