Use bottom border to cover border - HTML CSS CSS Property

HTML CSS examples for CSS Property:border-bottom

Description

Use bottom border to cover 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">

.block {<!--from   ww w . j  a v a2  s.  com-->
   width: 150px;
   height: 150px;
   display: block;
   background-color: red;
   border: 5px solid #000000;
   border-bottom-width: 5px !important;
   border-bottom-color: white;
}


      </style> 
 </head> 
 <body> 
  <div class="block"></div>  
 </body>
</html>

Related Tutorials