Archived topic
Image cover does not fit with container
1 reply · Started by Hendry on August 17, 2020
Hello,
i am confused about how to change my image cover on the homepage to make it fit with my container
why the left padding is larger than the right padding?
and what should i do to remove those padding so the cover image covers the entire container
Hi there,
latest WP update they changed the way cover block are displayed - which includes poor CSS that sets a 100% + padding but they neglected to add correct box-sizing. Its a known issue that WP should fix.
In the meantime add this CSS to fix the issue:
.wp-block-cover {
box-sizing: border-box;
}
Or you may want to check out GenerateBlocks which allows you to create much more advanced layouts: