How to highlight a control when choosing?

How can I select an image when I click and remove the selection when the mouse is raised?

+3
source share
3 answers

Two steps:

+2
source

Look at this, highlight the color at the click of a button , I think it deals with your problem

+1
source

psuedo CSS (: active,: hover), , .

        <div class="rollover">    
           <a href="#"><img src="Jpeg/image.gif" /></a>
        </div>
        <style type="text/css">
         <!--
            .rollover a { display:block; width:32px; background-color: #FFFFFF}
            .rollover a:hover { background-color: #990000}
            .rollover a:active { background-color: #876787}
          -->
        </style>
+1

Source: https://habr.com/ru/post/1738751/


All Articles