Set body margin to 10% : body : Basic Tags HTML CSS TUTORIALS


HTML CSS TUTORIALS » Basic Tags » body »

 

Set 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>
<style type="text/css">
body {
margin: 10%;
}

</style>
</head>

<body>

<div id="box">
   <h2>
   header 2
   </h2>
     <p>This is a text.</p>

 </div>
</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Basic Tags
» body