Two horizontal lines across a box - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Box

Description

Two horizontal lines across a box

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  ww . java  2 s  . c  om-->
   width:86%;
   margin:0 auto;
}

.line1 {
   width:100%;
}

.line2 {
   width:100%;
}
</style> 
 </head> 
 <body> 
  <div id="box"> 
   <hr class="line1"> 
   <hr class="line2"> 
  </div>  
 </body>
</html>

Related Tutorials