Wrapping border for whole div content - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div Border

Description

Wrapping border for whole div content

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

#box {<!-- w w w . j a  v  a2s  .  c  o  m-->
   width:90%;
   height:auto;
   position:absolute;
   border:5px solid green;
}
.left {
   float:left;
   width:30%;
}
.right {
   float:right;
   width:30%;
}
.middle {
   float:left;
   width:30%;
}


      </style> 
 </head> 
 <body> 
  <div id="box"> 
   <div class="left">
     Left 
   </div> 
   <div class="middle">
     Middle 
   </div> 
   <div class="right">
     Right 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials