Set margin and padding to 0 : padding : Box Model HTML CSS TUTORIALS


HTML CSS TUTORIALS » Box Model » padding »

 

Set margin and padding to 0


 

<!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">
h3 {
  margin: 0;
  padding: 0;
}
</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
» padding