H1 tag with a padding or margin on the bottom - HTML CSS CSS Property

HTML CSS examples for CSS Property:padding

Description

H1 tag with a padding or margin on the bottom

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
h1
 {
   margin:0;
   padding:0;
   line-height:auto;
   font-family:BebasNeue;
   color:Chartreuse;
   font-size:61pt;
}

.close-heading {<!--from  www .j  av a  2 s.  c o m-->
   margin:0px;
   padding:0px;
}

.close-heading p {
   margin:0px;
   padding:0px;
}

p.first
 {
   margin-top:-25px
}
</style> 
 </head> 
 <body> 
  <h1>Lorem ipsum dol</h1> 
  <div class="close-heading"> 
   <p class="first">Lorem ipsum dolor sit ame</p> 
   <p>Lorem ipsum dolor sit </p> 
  </div>  
 </body>
</html>

Related Tutorials