CSS3 :hover selectors - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

CSS3 :hover selectors

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">
footer {<!--   www.j  av a  2  s .  c o m-->
   width:301px;
   height:41px;
   border:2px solid Chartreuse;
}

footer:hover a {
   background-color:yellow;
}

footer a:hover {
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <footer> 
   <a href="#">Lorem ipsum dolor s</a> 
  </footer>  
 </body>
</html>

Related Tutorials