Getting margins right on all pages

Hi there.

I use the class nbwrap to set margins on pages.

.nbwrap {
padding-right: 7.5% !important;
padding-left: 14.5% !important;
}

Somehow I cannot manage to set identical margins on the blog index page and on single posts. So, how do I do this on single posts? And how can I do the same on the blog index page - and still maintain three columns, margins between columns, but with narrower width.

Thanks.

Hello There,

Thanks for writing in!

To resolve your issue, please have your code updated and use this instead:

.nbwrap,
.blog .x-container.offset-bottom,
.archive .x-container.offset-bottom,
.single .entry-wrap > .x-container.max.width {
  padding-right: 7.5% !important;
  padding-left: 14.5% !important;
}

We would loved to know if this has work for you. Thank you.

Thanks so much. It worked smoothly. From time to time I struggle with element classes. What would e the best source / overview of elements in pro? Thanks again.

Hi @nblund,

It’s not related to pro elements, but layout related. Though, with pro elements, you can directly apply the padding by inspecting without a need for Class or CSS.

Glad it’ works now, cheers!

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.