Make page border for single page - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Border Style

Description

Make page border for single page

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Border around content</title> 
  <style type="text/css">

* {<!--from ww  w  .j  a  va 2  s.com-->
   margin: 0;
   padding: 0;
}
html, body {
   height: 100%;
   overflow: hidden;
}
#wrapper {
   position: absolute;
   overflow: auto;
   left: 0;
   right: 0;
   top: 0;
   bottom: 0;
   border: 5px solid red;
}


      </style> 
 </head> 
 <body> 
  <div id="wrapper"> 
  </div>  
 </body>
</html>

Related Tutorials