The margin-bottom
style is not working for <h1>
tag as seen in the following image. The margin between heading and anchor tag buttons is not the same as specified for <h1>
. What is the reason for the same?
Code:
<div>
<p>Hellos!</p>
<h1>I'm Evans Gene<br>What's Up!</h1>
<a href="../file1" type="application/pdf" role="button" class="pBtn">About me</a>
<a href="../file2" type="application/pdf" role="button" class="pBtn">See Profile</a>
</div>
.pBtn {
color: #fff;
border: 1px solid #fff;
border-radius: 5px;
font-weight: 400;
margin: 20px 10px 0px 0px !important;
padding: 10px;
text-decoration: none;
}