Hi there I've got 4 divs each with a class called .section
and the first div, I want to use less padding.
If you check out this codepen, I've got a really basic example where it actually works.
However if you look at my current project, I can't actually add the :last-child
psuedo element. Please take a look here This code pen has the identical code in the CSS section. However it's not taking effect.
HTML
<div id="sermon-details" class="section">...</div>
<div id="media-content" class="section">...</div>
<div id="social-share" class="section">...</div>
<div id="advanced-settings" class="section">...</div>
CSS
.section:first-child{
padding-top:15px !important; //Not applying
}
Please put my mind to rest! Thanks!