h2 margin: 0; : Header margin « Tags « HTML / CSS






h2 margin: 0;

  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
h2 { 
 font: bold italic 2em  Georgia, Times, "Times New Roman", serif;
 margin: 0;
 padding: 0;
} 
p {
 margin: 0;
 padding: 0;
}

</style>
</head>

<body>
  <h2>Designing Instant Gratification</h2>
  <p>Online, activity of exchanging ideas is sped up. The 
  distribution of messages from the selling of propaganda to the
  giving away of disinformation takes place at a blindingly fast
  pace thanks to the state of technology&hellip;</p>
</body>
</html>

   
    
  








Related examples in the same category

1.h1, h2, h3 margin-left: auto; margin-right: auto;
2.h1 margin-bottom: 0;
3.H1 margin: 0 0 10px 0;
4.h1 margin-top: 0;
5.h1 margin: 0 0 30px 25px;
6.h4 margin-bottom: 3px;
7.H4 margin:0;
8.h2 margin: 0 0 0 0;