jmaasberg Posted May 16 Share Posted May 16 (edited) Hey All, https://bluewin.squarespace.com/sign-up-demos PW: 12345 I would like to use CSS to place the submit button for this form shown below in-line with the Zip field and am not sure how to accomplish this. I would also like to know how to do something similar with just an email field to display the submit button in-line to the right of the field with a space between, keeping it flush etc. I have the following code applied to forms sidewide at the moment to break up the First/Last fields. //FORM ADJUSTMENTS// #page{ .field-list { display: flex!important; flex-wrap: wrap!important; } /* These will be Full Width*/ .form-item:nth-child(3), .form-item:nth-child(4), .form-item:nth-child(5), .form-item:nth-child(6),{ width: 100% !important; } /* These Will Be Beside Each Other */ /* LEFT */ .form-item:nth-child(1), .form-item:nth-child(3),{ width: 48% !important; margin-right: 4% !important; } /* RIGHT */ .form-item:nth-child(2), .form-item:nth-child(4),{ width: 48% !important; } } Thank you! Edited May 16 by jmaasberg Beyondspace 1 Link to comment
Beyondspace Posted May 16 Share Posted May 16 4 hours ago, jmaasberg said: Hey All, https://bluewin.squarespace.com/sign-up-demos PW: 12345 I would like to use CSS to place the submit button for this form shown below in-line with the Zip field and am not sure how to accomplish this. I would also like to know how to do something similar with just an email field to display the submit button in-line to the right of the field with a space between, keeping it flush etc. I have the following code applied to forms sidewide at the moment to break up the First/Last fields. //FORM ADJUSTMENTS// #page{ .field-list { display: flex!important; flex-wrap: wrap!important; } /* These will be Full Width*/ .form-item:nth-child(3), .form-item:nth-child(4), .form-item:nth-child(5), .form-item:nth-child(6),{ width: 100% !important; } /* These Will Be Beside Each Other */ /* LEFT */ .form-item:nth-child(1), .form-item:nth-child(3),{ width: 48% !important; margin-right: 4% !important; } /* RIGHT */ .form-item:nth-child(2), .form-item:nth-child(4),{ width: 48% !important; } } Thank you! I try the trick related to position #block-0c9ec2652db859ed33a7 .react-form-contents { position: relative; } #block-0c9ec2652db859ed33a7 .form-button-wrapper { width: 45%; float:left; position: absolute; bottom: 0; right: 0; margin-bottom: var(--form-field-spacing-bottom); margin-right: 4%; } #block-0c9ec2652db859ed33a7 .form-button-wrapper button{ height: 40.4px; display: flex; justify-content: center; align-content: center; } #block-0c9ec2652db859ed33a7 .form-button-wrapper button [aria-label]{ height: 100%; display: flex; justify-content: center; align-items:center; } #block-0c9ec2652db859ed33a7 .form-button-wrapper button [aria-label] span:last-child{ display: none; } My testing Let me know how it works on your site jmaasberg 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
jmaasberg Posted May 16 Author Share Posted May 16 1 hour ago, Beyondspace said: I try the trick related to position #block-0c9ec2652db859ed33a7 .react-form-contents { position: relative; } #block-0c9ec2652db859ed33a7 .form-button-wrapper { width: 45%; float:left; position: absolute; bottom: 0; right: 0; margin-bottom: var(--form-field-spacing-bottom); margin-right: 4%; } #block-0c9ec2652db859ed33a7 .form-button-wrapper button{ height: 40.4px; display: flex; justify-content: center; align-content: center; } #block-0c9ec2652db859ed33a7 .form-button-wrapper button [aria-label]{ height: 100%; display: flex; justify-content: center; align-items:center; } #block-0c9ec2652db859ed33a7 .form-button-wrapper button [aria-label] span:last-child{ display: none; } My testing Let me know how it works on your site Wow that worked great, thank you! If it's not too much to ask, how would I go about doing this if there were only an email field? 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