Jump to content

How to position my form fields side by side and reduce the size of the form

Recommended Posts

hi, anyone know how to move form fields side-by-side so the form doesn't feel so long? ideally, I would like to have the phone number field next to the email field, the "number of residents" next to the "approximate monthly income" field, and the "what amount are you hoping to put down" next to the "approximate monthly income". 

I'd also like to know if there's way to make the "would you like to receive news about future DADO developments" just a checkbox and not a dropdown.

I have a second site I need to do this too as well.

please help!

Screenshot 2023-02-28 at 2.36.04 PM.png

Link to comment
  • Replies 5
  • Views 785
  • Created
  • Last Reply

Top Posters In This Topic

Try this thread:

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment

thanks, @Ziggy. when I plug the code from that thread in as-is, it moves one field, but not the right one, and then splits another field so the label is in the line above and the box for it is below (see attached). 

I tried changing the code a bit with the names of my form fields, but sadly, I am a bit of a novice/hack and can't figure out how to make it work for my fields. appreciate the attempt though! if I knew more, I could probably make it work. 

 

Screenshot 2023-03-02 at 11.28.56 PM.png

Link to comment
On 3/8/2023 at 4:28 AM, dguralnick said:

sorry, @tuanphan, I thought I had!

https://trombone-tuatara-23rn.squarespace.com/form

(password: TheDADO)

Add to Design > Custom CSS

/* Form block */
@media screen and (min-width:768px) {
div#block-224e368135bc76a0e2ea {
.field-list>*:nth-child(2), .field-list>*:nth-child(3), .field-list>*:nth-child(5), .field-list>*:nth-child(6) {
    width: calc(50% - 20px);
    float: left;
}
.field-list>*:nth-child(4), .field-list>*:nth-child(7) {
    clear: left;
}
.field-list>*:nth-child(2), .field-list>*:nth-child(5) {
    margin-right: 40px !important;
}

}}

image.thumb.png.7d16827bec246c7e358370836884233e.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.