Hover On SPAN - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

Hover On SPAN

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">
.startButton:hover {<!--from w w w  . j av  a  2 s .  c om-->
   color:Chartreuse;
   background-color:yellow;
}

.startButton span:hover {
   color:blue;
   background-color:pink;
}
</style> 
 </head> 
 <body> 
  <a href="#arrow" class="startButton" style="background-color: #fff; color: #555;" id="brickButton"> <span id="theText">Lorem ipsum dolor s</span> </a>  
 </body>
</html>

Related Tutorials