Check border size - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border Style

Description

Check border size

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

#div1 {<!-- w ww  . j a  v a2 s  .  c  o m-->
   border:2px solid;
   width:50px;
}
#container {
   width:50px;
}
#div2 {
   border:2px solid;
}


      </style> 
 </head> 
 <body> 
  <div id="div1">
    54px 
  </div> 
  <br> 
  <div id="container"> 
   <div id="div2">
     50px 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials