Remove the gap created by paragraph and header tags - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Header

Description

Remove the gap created by paragraph and header tags

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">

body {<!-- ww  w.j a va2 s .  co  m-->
   background-color: #3A3C3D;
   margin: 0;
}
.backDrop {
   background-color: #aca;
   box-shadow: 0 0 20px black;
   height: 100vh; width: 90vw;
   margin: auto;
   position: abolute;
}
h1{
   margin:0;
   padding:10px;
}


      </style> 
 </head> 
 <body> 
  <div class="backDrop"> 
   <h1>Hello world</h1> 
  </div>  
 </body>
</html>

Related Tutorials