Site logo

Archived topic

Content and Sidebar Top Misalignment on Static Home Page

4 replies · Started by Thomas on November 10, 2017

Viewing posts 1–5 of 5

On my static front page, I have a no-sections, content-sidebar layout. The top of the content does not align with the top of the sidebar. See image.

content and side bar top misalignment

I don't think the culprit is any CSS, short codes, or HTML, because if I remove all of that, the content area appears as short white rectangle that misaligns with the sidebar exactly the way it does with all the code and content. Running GP Premium 1.5.1. Have gone through all the property pages and have not found a setting to fix this.

What would you suppose is the cause/solution?

[Today I have been switching themes from Twenty Twelve to GeneratePress. The idea of switching themes was intimidating, but with GeneratePress, it has turned out to be far less painful than I anticipated. Googling " something something GeneratePress" nearly always lands on solutions in this forum. It's a great theme, worth every penny. Should have started out with it a few years ago.]

Ahh, found it using Chrome's developer's tools.

Changed this:

.entry-content, .entry-summary, .page-content {
    margin: 2em 0 0;
}

to this:

.entry-content, .entry-summary, .page-content {
    margin: 0 0 0;
}

If you disable the title using the Disable Elements meta box, that element will lose it's margin automatically :)

Beautimous! That's the better way to do it. Thanks.

You're welcome :)

This archived topic is closed to new replies.