Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

JavaScript When I tap one of the buttons via mobile, there is a white flash, how do I disable or remove that?

Does anyone on here know what I am referring to?

https://jsfiddle.net/xmdq14a2/1/ 1

To reproduce, tap one of the buttons on via a mobile device.

I think it may be this?

:active

How would I disable it from occurring when tapping a button?

What would I put inside here?


CSS:
button:active{

 }

or, maybe that is not it.

It was something I noticed and was wondering why it was there, and can it be removed?
 
Does anyone on here know what I am referring to?

https://jsfiddle.net/xmdq14a2/1/ 1

To reproduce, tap one of the buttons on via a mobile device.

I think it may be this?

:active

How would I disable it from occurring when tapping a button?

What would I put inside here?


CSS:
button:active{

 }

or, maybe that is not it.

It was something I noticed and was wondering why it was there, and can it be removed?

:active is most likely the issue. Where you define your link style, add the :active pseudo class like so:

.mylink,
.mylink:active{
/* my styles here */
}

This will style both "states" of the link the same.

Also, I will frequently not add a change on hover until I reach a wider width which will more likely be a desktop/laptop viewport width as some mobiles (if not all) will show hover state on tap and require a second tap to follow the link (at least that used to be the case).
 

New Threads

Latest posts

Buy us a coffee!

Back
Top Bottom