@media handheld - no hover effects - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Effect

Description

@media handheld - no hover effects

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
a.my_element {<!--from w w  w. j  a va  2 s  .  c  o m-->
   color:Chartreuse;
}

a.my_element:hover {
   color:yellow;
}

@media (max-width: 480px)  {
   a.my_element:hover {
      color:blue;
   }

}
</style> 
 </head> 
 <body> 
  <a href="#" class="my_element">Lorem ips</a>  
 </body>
</html>

Related Tutorials