Body margin to 10% : margin : Box Model HTML CSS TUTORIALS


HTML CSS TUTORIALS » Box Model » margin »

 

Body margin to 10%


 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
    <head>
        <title></title>
<style type="text/css">
body {
  margin: 10%;
}
</style>
    </head>
    <body>
<h2>header 2</h2>
<h3>header 3</h3>

<p>This is a text.</p>


    </body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Box Model
» margin