make CSS3 rounded corners hide overflow - HTML CSS CSS Property

HTML CSS examples for CSS Property:overflow

Description

make CSS3 rounded corners hide overflow

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">
#wrapper {<!-- w  w w  .j av  a  2  s. co  m-->
   width:301px;
   height:301px;
   border-radius:100px;
   overflow:hidden;
   position:absolute;
}

#box {
   width:301px;
   height:301px;
   background-color:Chartreuse;
   border-radius:100px;
   -webkit-border-radius:100px;
   -moz-border-radius:100px;
   -o-border-radius:100px;
}
</style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <div id="box"></div> 
  </div>  
 </body>
</html>

Related Tutorials