Create round corner div via border - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Border

Description

Create round corner div via border

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{<!--from ww w .ja va  2s  .  c  o m-->
   width:200px;
   height:200px;
   background:red;
   color:#fff;
   -moz-border-radius:10px;
   -webkit-border-radius:10px;
   -khtml-border-radius:10px;
   border-radius:10px;
   border:2px solid yellow;
}


      </style> 
 </head> 
 <body> 
  <div>
    fdsf 
  </div>  
 </body>
</html>

Related Tutorials