Hover to change Bold text element and change background color - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to change Color

Description

Hover to change Bold text element and change background color

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">
#hoverEle {<!--   ww w .  j a va 2 s  . c  om-->
   width:100px;
}

#hoverEle {
   display:inline-block;
   border:2px solid Chartreuse;
   padding:4px;
   text-align:center;
}

#hoverEle:hover {
   transition:all ease-in-out 0.2s;
   background-color:yellow;
}
</style> 
 </head> 
 <body> 
  <span id="hoverEle">Lorem ipsum </span> 
  <span id="hoverEle">Lorem ip</span>  
 </body>
</html>

Related Tutorials