Highlight CSS button when is clicked - HTML CSS CSS Form

HTML CSS examples for CSS Form:input button style

Description

Highlight CSS button when is clicked

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>

a {<!--  w  ww  .  j  a va  2s  .  c  o m-->
   background: red;
   display: block;
   width: 100px;
   height: 20px;
   margin: 5px;
}
a:active {
   background: black;
}


      </style> 
 </head> 
 <body translate="no"> 
  <a title="WIFI" href="javascript: void(0)" id="showWifi_${item.index}" class="showWifi"> 
   <div class="news_box news_box_01 hvr-underline-from-center " style="">
     test2 
   </div> </a> 
  <!-- Bottone relativo ai progetti PNSD: --> 
  <a title="PNSDe" href="javascript: void(0)" id="showPnsd_${item.index}" class="showPnsd"> 
   <div class="news_box news_box_02 hvr-underline-from-center ">
     test 
   </div> </a>  
 </body>
</html>

Related Tutorials