Hey there! I am currently dealing with an interesting situation regarding a link styled as a button on my website.
<a href="http://externalsite" class="button" target="_blank">go to external site</a>
Additionally, I have applied a hover effect to this button class, which looks like this:
.button {
background-color: green;
}
.button:hover {
background-color: red;
}
Everything seems to be working fine as expected, with the button turning red when hovered over. However, I have noticed that in certain browsers, the hover effect seems to stick even after clicking the button and returning to my website.
For example, in my version of Chrome (47.0.2526.80), after clicking on the external link and then coming back to my site, the button remains red until I move my cursor over it again. This behavior seems to be specific to Chrome. Has anyone else encountered this issue? Could it potentially be a browser bug? I would appreciate any suggestions for a workaround to ensure a consistent user experience across different browsers.