Create border with a circle in the corner - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-radius

Description

Create border with a circle in the corner

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem </title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.wrapper {<!--   w w  w.ja  v a 2s  .c  om-->
   margin:26px;
}

.square {
   width:301px;
   height:100px;
   border:6px solid Chartreuse;
}

.circle {
   width:51px;
   height:51px;
   border-radius:51px;
   background-color:yellow;
   position:absolute;
   margin-left:276px;
   margin-top:-26px;
}
</style> 
 </head> 
 <body> 
  <div class="wrapper"> 
   <div class="square"> 
    <div class="circle"></div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials