Could you please help me understand why the <p>
tag is not center aligning properly in my code? The alignment seems a bit off from what I expected. Below is the section of CSS that I believe is related to this issue, although I did not originally write it.
#hero-area2 .contents {
padding: 200px 0 130px;
}
#hero-area2 .contents h1 {
color: rgb(38, 211, 125);
font-size: 42px;
font-weight: 700;
margin-bottom: 25px;
}
#hero-area2 .contents p {
font-size: 14px;
color: rgb(38, 211, 125);
font-weight: 400;
line-height: 30px;
letter-spacing: 0.5px;
text-align: center;
}
#hero-area2 .contents .btn {
margin: 25px 25px 0px 0px;
text-transform: uppercase;
}
<div class="container">
<div class="row justify-content-md-center">
<div class="col-md-10">
<div class="contents text-center">
<h1 class="wow fadeInDown" data-wow-duration="1000ms" data-wow-delay="0.3s">Kuvumela Amandla</h1>
<p class="lead wow fadeIn" data-wow-duration="1000ms" data-wow-delay="400ms">Our Service Offering</p>
<a href="contact.html" class="btn btn-common wow fadeInUp" data-wow-duration="1000ms"
data-wow-delay="400ms">CONTACT US</a>
</div>
</div>
</div>
</div>