I have a container, single-post-container
and to each div
inside of it, I assing a padding and a margin, which should be modified by any rules that come after it. On line 2700, I have:
.single-post-container > div {
padding: 0 0 48px 0;
margin-bottom: 48px;
}
But then, on line 2900 (which should override it), I have:
.no-related-posts {
padding: 48px;
}
Nothing happens. The no-related-posts
class simply gets behind the > div
rule and it's not applied, even if, within the CSS document, it's ahead of it.
.single-post-container > div {
padding: 0 0 48px 0;
margin-bottom: 48px;
}
.no-related-posts {
padding: 48px;
}
<div class="single-post-container">
<div class="post-content">
Hello, just testing.
</div>
<div class="no-related-posts">
Related Posts.
</div>
</div>
What's the issue here?