Border Radius Bug with Display:Table - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Border

Description

Border Radius Bug with Display:Table

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <style>
.box {<!--from  w  w  w .  ja  v  a  2 s . c  o  m-->
   float:left;
   height:100px;
   width:100px;
   margin-right:11px;
   background-color:Chartreuse;
   border:6px solid yellow;
   border-radius:51%;
   box-sizng:border-box;
   display:table;
   background-clip:padding-box;
}

.dashed {
   border:6px dashed blue;
}
</style> 
 </head> 
 <body translate="no"> 
  <div class="box"></div> 
  <div class="box dashed"></div>  
 </body>
</html>

Related Tutorials