Gaps in product page

Topic summary

A user seeks to add spacing between product variants and the quantity selector on their product page.

Two solutions provided:

  1. Edit base.css margin - Locate the base.css file in the theme’s Asset folder and modify the margin value from 0 to a desired spacing (e.g., 10px). Screenshots show the specific code location and expected result.

  2. Add custom CSS for mobile - Insert a CSS snippet into theme.css, base.css, custom.css, or styles.css that adds 20px top margin specifically for mobile view (max-width: 575px), since desktop layout doesn’t stack variants above quantity.

Both approaches involve accessing the theme code editor through Admin > Online Store > Themes > Edit Code. The issue appears unresolved as no follow-up confirmation was posted.

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

Hello. How to edit the product page to have a little gap between product variants and quantity?

Link: https://holycup.lt/collections/indu-kolekcija/products/stikliniai-siaudeliai-wavy

Thank you!

1 Like

Hi @manter

In your base.css file it was set 0 margin. You can edit it if not let me know.

From the admin > online store > select themes > edit code > Find the Asset folder and look for Base.css file.

Click open and find this code below.

Made4uoRibe_0-1718906806134.png

You can also search by line numbers.

And add the size you like example below.

Made4uoRibe_1-1718906862246.png

Then Save.

Result:

1 Like

Hi @manter ,

You can follow these steps to make a little gap between the quantity and the product variants

1, Open Online Store > Theme > Edit Code

  1. Search and open theme.css, base.css, custom.css, or styles.css

  2. Paste the code snippet below to the bottom of the file and hit save (this code only updates the display on mobile view since the larger view doesn’t have the variants sit on top of the quantity)

@media (max-width: 575px) {
  .tt-product-single-info .tt-wrapper .tt-input-counter {
    margin-top: 20px;
  }
}

Here is the result

Hope this helps you solve the issue.

Please don’t forget to Like and Mark it as an Accepted Solution if you find this helpful. Thank you!

1 Like