sophiamd57 Posted February 10, 2022 Share Posted February 10, 2022 Site URL: https://crytime.art/shop Hi there! I'd like to get rid the the space between my product description and the "extra info" on my product page for mobile. I understand in concept how I can do this coding, but I don't know exactly what code to put in. Thank! Link to comment
Solution paul2009 Posted February 10, 2022 Solution Share Posted February 10, 2022 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
sophiamd57 Posted February 10, 2022 Author Share Posted February 10, 2022 Thank you again Paul, that worked perfectly! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment