Add internal border on div within the padding - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border

Description

Add internal border on div within the padding

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#border {
   padding:11px;
   box-shadow:inset 0 0 0 10px Chartreuse,inset 0 0 0 11px black;
   background-color:yellow;
}
</style> <!--  w  ww. ja v a 2 s.c o m-->
 </head> 
 <body> 
  <div id="border">
    some content 
  </div>  
 </body>
</html>

Related Tutorials