Shopify themes, liquid, logos, and UX
I want to use an image that looks like a ripped piece of paper as a section divider on a website. It will be used several times but since it has a jagged edge, I think I need to adjust the top and bottom margin along with the z-index. I want the background from the sections above and below to flow behind the image divider.
I used this code in a custom liquid section:
You're already half-way there, all you have to do is learn about absolute and relative positioning, and also the insets that comes with these properties, then find a way to apply them here.
I'd like to provide exact code but there's no way to check if it works here..
You could also try out negative margins, either will work, you just gotta understand what you're doing
Thanks for the tip! Here's what I have so far:
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025