I am struggling to add top space to my subtitle, but for some reason, it’s not working. However, I noticed that when I apply the class spacer-top to the row class, it works fine. How can I also add spacer-top to the mainsubtitle?
HTML
<div class="container-fluid" id="about">
<div class="row">
<mainsubtitle class="spacer-top">Something</mainsubtitle>
</div>
</div>
CSS
#about{
text-align: center;
background-color: #ffffff;}
mainsubtitle{
padding-top: 50px;
font-family: 'Lato Regular', 'Lato';
font-weight: 400;
font-style: normal;
font-size: 36px;
color: #000;
text-align: center;}
.spacer-top {
padding-top: 100px;
padding-bottom: 0px;}