admin管理员组文章数量:1333201
I'm looking for a solution that will allow me to add an image that will sit over a section divider, but then be hidden behind the section its self.
If you look at this section on the website you can see the image disappears beneath the divider. I'm trying to make it sit on top of the divider then hide underneath section like the mockup I've created below.
/
Desired Outcome
I'd appreciate any guidance or help that can provided on my issue.
I'm looking for a solution that will allow me to add an image that will sit over a section divider, but then be hidden behind the section its self.
If you look at this section on the website you can see the image disappears beneath the divider. I'm trying to make it sit on top of the divider then hide underneath section like the mockup I've created below.
https://snapstaging.co.uk/thesnapagency/
Desired Outcome
I'd appreciate any guidance or help that can provided on my issue.
Share Improve this question edited Jul 23, 2020 at 13:26 asked Jul 20, 2020 at 12:13 user191925user191925 2- 1 This doesn't appear to be specific to Wordpress development, so may get closed on that basis. You might want to look at asking your quesiton on a general Web Development StackExchange site, or StackOverflow – mozboz Commented Jul 20, 2020 at 12:21
- Thanks for the advise. I'll try on there instead. – user191925 Commented Jul 20, 2020 at 12:24
1 Answer
Reset to default 1It looks like you're using Divi, and you've placed the image in the column that Divi is calling "Section 4" on that page.
If you want the image to appear in section 3 and get cut off by the divider, then you have a couple of solutions:
- Move the image to section three, and adjust the position so that it's
bottom: -150px
instead of pinned to the top. - Or add the image to its own column, position it, and set it to hide behind section 4.
Option 1 might be a lot easier.
Below is a screenshot of what Option 1 will look like in CSS. You don't have to actually write this CSS code -- this is just for reference.
If you have any questions, feel free to reply!
本文标签: cssPlacing background image over section divider
版权声明:本文标题:css - Placing background image over section divider 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742238960a2438558.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论