Site logo

Archived topic

Layout borders aren’t working for blocks anymore

9 replies · Started by vitasco on August 14, 2020

Viewing posts 1–10 of 10

Hi there,

after the recent update there’s a problem with our layout.

When there are blocks inside a page (especially the block „cover“) the right space of the content is not the same as on the left side. It’s a lesser amount.

With other content (group, YouTube videos or sliders) all is good.

What could be the problem...?

I’ve deleted all cache ... recreated the css files ... but the problem still exists.

Kind regards
Marco

Hi there,

have to WP and its ever changing block styles ....
Try adding this CSS for now:

.wp-block-cover {
    box-sizing: border-box;
}

Hello David,

thanks for your kind reply ...

I was diggin’ there too.

You’ve missed: .wp-block-cover,

...and it works like a charme.

Kind regards
Marco

Yeah - i was being dumb lol.
You should only need that one:

.wp-block-cover {
    box-sizing: border-box;
}

No problem at all ... so was I :-D

Thanks a lot!

You're welcome

Hi guys,
it will be fixed in next release?
.wp-block-cover {
box-sizing: border-box;
}

Hi there,

its actually something that WP core needs to fix.
However in GP 3.0 if the Flex option is used this will auto apply border-box to elements.

ah ok thanks!

You're welcome

This archived topic is closed to new replies.