I want to effect the text as the first h1 below .contactSection. However I used nth-child(1) for the class, the two h1 elements inside .contactSection are subjected. I do not know how to put some margin onto the first h1 element.
.contactSection {
width: 100%;
text-align: center;
}
.contactSection button {
padding: 4% 16%;
background: #f42988;
border-radius: 30px;
color: cornsilk;
font-size: 10pt;
border: none;
}
.contactSection p {
padding: 0 2%;
z-index: 1;
position: relative;
}
.contactSection h1:nth-child(1) {
margin-top: 15px;
}
.formTitle {
font-size: 32px;
color: cornsilk;
}
.contactForm {
width: 80%;
background: #e32b7a;
margin: 5% 10%;
padding: 4% 10px;
border-radius: 30px;
}
<section class="contactSection">
<h1>Information</h1>
<div class="contactForm">
<div class="post">
<h1><span class="formTitle">This page is under construction</span></h1>
<p>This page will come up very soon. Sorry for inconvenience. We also post any info on facebook, Twitter, and Instagram. If you check out and follow them up, I would be greatful. Thanks!</p>
</div>
</div>
</section>