create a simple full screen box in HTML/CSS - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Box

Description

create a simple full screen box in HTML/CSS

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
html, body {
   height:100%;
   min-height:100%;
   border-width:6;
   border-style:solid;
}

table {<!--  w  w  w  .j  a  v  a 2 s  .  com-->
   height:100%;
   width:100%;
}

td {
   height:100%;
   width:100%;
   vertical-align:middle;
   text-align:center;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>Lorem i</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials