I’ve noticed there is a “border” around my featured collection. I was wondering what the distance is set to by default and how I can potentially change it on mobile specifically.
I’m interested in the space to the left and right of the grid. I’d like to know what how much space that is as declared by the code and how to adjust it. I tried looking in the code but couldn’t find it.
Unfortunately I find it impossible to work in the code editor mobile. It used to work fine but a few updates ago it became virtually useless and I don’t have my desktop with me.
would it be possible to just give me some code to try? I’ve picked up a few things from the community but just had trouble locating exactly what the selector and property was this time.
Your section doesn’t have a “border”. It simply follows standard theme-established width, padding, and margin settings.
What you see as a “border” is actually the page background. Make sure you understand what you’re looking at. Think of it like pieces of paper on a billboard. The billboard is the page. The pieces of paper are sections. You can also have smaller pieces of paper called blocks inside the larger sections. You can move the pieces around, rearrange, set distances from each other. Look at this section:
It has no border, but it is set by the theme to be positioned in the center with width, padding, and margins. This particular section has left/right padding of 1.5rem. That’s why it doesn’t go all the way to the edge of the screen. If you were to target the mobile view of this section and set the padding to 0, you’d see the blocks go to the edges:
Try to copy in Custom CSS setting of Featured collection section
So if you reduce that 1.5rem to 0 it will go all the way but that does not look good by the way.
Also, do not go into any private chat with anyone here claiming it’s “more practical than this thread”. That profile was created 55 minutes ago. This is a public forum. If you need some major work done, there are well-established professionals here.
Appreciate it. I’ve posted a good amount on here and no one has ever really replied like that but didn’t think much of it. Just that people don’t typically reply like that here.