admin管理员组文章数量:1125953
I am running into issues when using the cover block.
I created the following header with the cover block:
Unfortunately there is more space to the top when using the cover block which makes the header move upwards when navigating to another page.
I can move the header up with the following code:
position: relative;
top: -19.5px
This just doesn't seem right though. How can I fix the spacing issue?
Just to make clear, it's not the padding from the cover block:
I have no clue where this spacing is coming from:
I am running into issues when using the cover block.
I created the following header with the cover block:
Unfortunately there is more space to the top when using the cover block which makes the header move upwards when navigating to another page.
I can move the header up with the following code:
position: relative;
top: -19.5px
This just doesn't seem right though. How can I fix the spacing issue?
Just to make clear, it's not the padding from the cover block:
I have no clue where this spacing is coming from:
Share Improve this question edited Mar 6, 2024 at 17:40 Marzii asked Mar 6, 2024 at 17:27 MarziiMarzii 336 bronze badges 2- I don't think this is something that can be diagnosed from screenshots, there's no code in your question, blocks to reproduce the issue, or links to a site that can be used to inspect and reverse engineer where the space is coming from. Can you edit your question to fix that? – Tom J Nowell ♦ Commented Mar 6, 2024 at 17:52
- Tbh, I feel a bit dumb now. The only thing I had to change was the content position from center to top... – Marzii Commented Mar 6, 2024 at 21:47
1 Answer
Reset to default 2The issue was that the content was centered and not aligned to the top of the cover:
本文标签: theme developmentUnwanted spacing for cover block
版权声明:本文标题:theme development - Unwanted spacing for cover block 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736626848a1945692.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论