How to cover edge cases for low amounts of content

Let’s say you have a tag cloud and an author bio section at the bottom of your article. To make a distance from the post content, you set top margins.

But that doesn’t cover the edge case when there is no content in your post. The margins stay and unnecessary space appears. To prevent this, set the following code for this two sections:

.lifestyle-single-content .article .tags:first-child {
margin-top: 0;
}
lifestyle-single-content .article-author-box:first-child {
margin-top: 0;
}

If either of these two sections appears at the beginning of the post, it will not have a top margin.

and tagged