Blank gaps in the corners - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-right-color

Description

Blank gaps in the corners

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   www  . ja  v  a 2  s .  com-->
   width:21px;
   height:21px;
   padding:7px;
   position:relative;
}

div:before , div:after {
   content:'';
   border:7px solid Chartreuse;
   position:absolute;
}

div:before {
   left:3px;
   right:3px;
   top:0;
   bottom:0;
   border-top-color:yellow;
   border-bottom-color:blue;
}

div:after {
   top:3px;
   bottom:3px;
   left:0;
   right:0;
   border-right-color:pink;
   border-left-color:OrangeRed;
}
</style> 
  <script type="text/javascript">

      </script> 
 </head> 
 <body> 
  <div></div>  
 </body>
</html>

Related Tutorials