Help with CSS spacing on WordPress Pages versus Posts
-
We are using a theme called Winning Agent Pro. The spacing of the page content on posts is different from the spacing on pages. We tried editing the CSS to change the margin to make the spacing appear the way we wanted it to, but it causes the content on the page to be in a different location than the content on a post.
The CSS that controls the element we are trying to move is below. The spacing of the content with this code looks good on a post, but not on a page.
.site-inner, .search-bar { padding-top: 0px !important; margin-top: -50px; }
Here’s how the above CSS creates the correct spacing on the top of a post (the space between the breadcrumbs and the logo):
https://luxurylivingfortlauderdale.com/sold-4444-el-mar-drive-unit-3402-lauderdale-by-the-sea-fl-33308/And here’s how a page looks:
https://luxurylivingfortlauderdale.com/lifestyle/restaurant-guide/Why does the CSS make pages look different from posts, and how do we fix it so that the spacing between the logo and the breadcrumbs is the same on both?
- The topic ‘Help with CSS spacing on WordPress Pages versus Posts’ is closed to new replies.