Jump to content

How to get rid of this open space on my product page? (Mobile)

Go to solution Solved by paul2009,

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution
14 minutes ago, sophiamd57 said:

I'd like to get rid the the space between my product description and the "extra info" on my product page for mobile.

You can do this with some CSS.

By default, there are 40 pixels of margin at the bottom of the Product Excerpt section and then another 5vw units of margin on top of the Additional Info section. To reduce the whitespace you can reduce one or both of these to meet your requirements. I've set them both to zero in this example CSS:

@media only screen and (max-width: 799px) {
    .ProductItem-details .ProductItem-details-excerpt {
        margin-bottom: 0; //40px
    }
    .ProductItem .ProductItem-additional {
        margin-top: 0; //5vw
    }
}

 

Notes:
1. This is for Squarespace 7.1.
2. This uses a media query so that it only applies to mobile devices (devices with a screen width of 799px or smaller).
3. CSS should be added to Design > Custom CSS.

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.