Hover to enlarge circle shape - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Hover to enlarge circle shape

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">

div {<!--  ww w .  j a va2 s.co m-->
   display: inline-block;
}
.circlecontainer {
   background: #E0E;
   text-align:center;
   line-height:200px;
   width:200px;
   height:200px;
}
.circle {
   line-height: 100px;
   position: relative;
   vertical-align: middle;
   width:100px;
   height:100px;
   border-radius: 50px;
   font-size:20px;
   color:#fff;
   background:#000
}
.circle:hover {
   width:200px;
   line-height: 200px;
   height:200px;
   border-radius: 100px;
}


      </style> 
 </head> 
 <body> 
  <div id="title">
    Text 
  </div> 
  <div class="circlecontainer"> 
   <div class="circle">
     Hello 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials