Rounded bottom border for div - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-bottom

Description

Rounded bottom border for div

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

.outer {<!--from   www . j  ava  2  s . c  o m-->
   width: 50px;
   height: 50px;
   position: relative;
   border: #000 1px solid;
}
.inner {
   position:absolute;
   background: #fff;
   height: 20px;
   width: 50px;
   bottom: -1px;
   left: -1px;
   border-left: #000 1px solid;
   border-top: #000 1px solid;
   border-right: #000 1px solid;
   border-top-right-radius: 25px;
   border-top-left-radius: 25px;
}


      </style> 
 </head> 
 <body> 
  <div style="width: 50px; height: 50px; position: relative; border: #000 1px solid;"> 
   <div style="position:absolute; background: #fff; height: 20px; width: 20px; bottom: -1px; left: -1px; border-top: #000 1px solid; border-right: #000 1px solid; border-top-right-radius: 15px;"> 
   </div> 
  </div> 
  <div class="outer"> 
   <div class="inner"></div> 
  </div>  
 </body>
</html>

Related Tutorials