christerdabu Posted May 4 Share Posted May 4 Out of nowhere my form blocks in my inquiry page are now touching each other. There are no longer gaps in between the blocks, How can I fix this? Thank you, any help is appreciated. Here's a link to my inquiry page: https://www.christerdabu.com/inquire Link to comment
tuanphan Posted May 6 Share Posted May 6 You mean add a spacing here? christerdabu 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
christerdabu Posted May 19 Author Share Posted May 19 (edited) On 5/6/2023 at 12:23 AM, tuanphan said: You mean add a spacing here? @tuanphan Yes! That's what I'm trying to figure out Edited May 19 by christerdabu Link to comment
paul2009 Posted May 19 Share Posted May 19 On 5/4/2023 at 6:24 PM, christerdabu said: Out of nowhere my form blocks in my inquiry page are now touching each other. There are no longer gaps in between the blocks, How can I fix this? This has happened because Squarespace engineers rolled out a new Form Block in May 2023. This new Form Block has different markup and has been restyled. Anyone using custom CSS (like you have added to show fields next to one another) needs to update their CSS to make it compatible with the new form. Specifically, you'll want to add some margin to the fields that you're placing side-by-side. For example, to add 4 pixels of right-margin, you could use something like this: .form-wrapper .react-form-contents .field-list .field { margin: 0 4px 18px; } Did this help? Please give feedback by clicking an icon below ⬇️ tuanphan 1 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
christerdabu Posted July 30 Author Share Posted July 30 On 5/19/2023 at 1:25 AM, paul2009 said: This has happened because Squarespace engineers rolled out a new Form Block in May 2023. This new Form Block has different markup and has been restyled. Anyone using custom CSS (like you have added to show fields next to one another) needs to update their CSS to make it compatible with the new form. Specifically, you'll want to add some margin to the fields that you're placing side-by-side. For example, to add 4 pixels of right-margin, you could use something like this: .form-wrapper .react-form-contents .field-list .field { margin: 0 4px 18px; } Did this help? Please give feedback by clicking an icon below ⬇️ So I tried this and it worked, but after refreshing the page a few times it goes back to no spacing. Link to comment
creedon Posted July 30 Share Posted July 30 It appears SS is sneaking in a CSS file after your custom CSS which is overriding your CSS. As a temporary fix add !important to the declaration. margin : 0 4px 18px !important; Let us know how it goes. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
christerdabu Posted September 10 Author Share Posted September 10 Hello, I recently just noticed that the gap disappeared again. There's no spacing in my inquiry form again. It's weird because when I'm viewing my website online there's no gap but when I'm on the custom CSS page in squarespace there is a gap. Can someone help me put the gap between the fields permanently? Thank you Link to comment
tuanphan Posted September 14 Share Posted September 14 On 9/11/2023 at 5:16 AM, christerdabu said: Hello, I recently just noticed that the gap disappeared again. There's no spacing in my inquiry form again. It's weird because when I'm viewing my website online there's no gap but when I'm on the custom CSS page in squarespace there is a gap. Can someone help me put the gap between the fields permanently? Thank you In bottom of CSS code, find this .form-wrapper .react-form-contents .field-list .field { margin: 0 6px 18px } change it to .form-wrapper .react-form-contents .field-list .field { margin: 0 3px 18px !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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