move padding up mobile

Topic summary

A user seeks to reduce excessive padding at the top of their collection page on mobile devices, wanting content to sit closer to the header.

Key Points:

  • The site owner intentionally hid breadcrumbs on the collections page
  • Another user questioned why negative margin was being used, suggesting this might be causing spacing issues

Proposed Solutions:

Two CSS-based fixes were offered:

  1. First approach: Add custom CSS targeting mobile screens (max-width: 768px) to adjust breadcrumb margin with negative top value (-62px) and customizable spacing

  2. Second approach: Modify existing code in Theme.css at line 12355, changing the breadcrumb margin from -40px 0 50px to -100px 0 50px for more aggressive top spacing reduction

Both solutions use media queries to target mobile viewports specifically and adjust the .breadcrumb class margin property. The issue appears related to breadcrumb positioning even though breadcrumbs are hidden, suggesting the element still affects layout spacing.

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

Hi,

I’m looking to move the starting point up closer to header. There’s to much padding on mobile

my site is https://luxurymrkt.com/collections

1 Like

Hi @Luxurymrkt

Just a question, did you hide the breadcrumbs on purpose?

Thats, is why there is negative margin?

Yes didn’t want breadcrumbs on that page

Hi @Luxurymrkt ,

You can add this code to your css file

@media only screen and (max-width: 768px) {
.breadcrumb {
margin: -62px 0 50px; //adjust margin according to your preference
}
}

Result:

If you need further assistance, feel free to reach out!
I hope this helps! If it does, please like it and mark it as a solution!

Regards,

Sweans

Hello @Luxurymrkt

Go to online store ---------> themes --------------> actions ------> edit code------->Theme.css -----> line number 12355
search this code

@media only screen and (max-width: 768px) {
.breadcrumb {
font-size: calc(var(--typeBaseSize)*0.85);
margin: -40px 0 50px;
}
}

and replace with this code

@media only screen and (max-width: 768px) {
.breadcrumb {
font-size: calc(var(--typeBaseSize)*0.85);
margin: -100px 0 50px;
}
}

and the result will be

If this was helpful, hit the like button and mark the job as completed.
Thanks