Create a border inserted into an element, leaving a margin - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border Style

Description

Create a border inserted into an element, leaving a margin

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

#border {
   width: 200px;
   height: 100px;
   background: brown;
   padding: 10px;
   color: orange;
   border-top: 10px brown solid;
   box-shadow: inset 0 5px  orange;<!--from  www .ja v a 2  s.  com-->
}


      </style> 
 </head> 
 <body> 
  <div id="border">
    Some text 
  </div>  
 </body>
</html>

Related Tutorials