最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

pages - Cover block always has margin

programmeradmin1浏览0评论

I'm working on a website where I want to have some group blocks where I want to add some images of patterns to just make the website a bit nicer than just plain colors. I'm using a cover block to hold the image and have content on top of it. I want to have the cover cover the whole group block it is in but there is margins on both sides on the group. In the example below it's the light blue parts:

Here is the structure for this group:

How do I fix this?

I'm working on a website where I want to have some group blocks where I want to add some images of patterns to just make the website a bit nicer than just plain colors. I'm using a cover block to hold the image and have content on top of it. I want to have the cover cover the whole group block it is in but there is margins on both sides on the group. In the example below it's the light blue parts:

Here is the structure for this group:

How do I fix this?

Share Improve this question asked Mar 10, 2022 at 23:26 BRHSMBRHSM 1011 bronze badge 2
  • this isn't something that can be fixed from a screenshot, opening the site in a browser with dev tools is necessary, though as far as I can tell group blocks that have a background colour will have padding, I don't see why the cover block can't do the job that the group block is doing though – Tom J Nowell Commented Mar 11, 2022 at 0:11
  • I see, just using the cover works great! thanks – BRHSM Commented Mar 11, 2022 at 8:53
Add a comment  | 

1 Answer 1

Reset to default 0

Use the cover block instead, the group block isn't necessary, and will have padding if it's given a background colour.

发布评论

评论列表(0)

  1. 暂无评论