Jump to content

How do I position a form button to field side by side?

Recommended Posts

  • Replies 5
  • Views 2.6k
  • Created
  • Last Reply

Can you provide a working link to the page where you are attempting this?

About me: I'm Paul. A SQSP User for 18 yrs, I've been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee fuels my work.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment

This usually works for two text boxes, but it will become more complex if you try to add further text boxes or checkbox fields. As an example, adding 

form { display: flex; } 

places the submit button on the same line but it then looks like this on a large screen.  

Adding Display Flex

As you will see, this isn't perfect and as the screen width is reduced, the layout will compress and become even less clear.

 

You could change the layout and checkbox so that it looks better, but this is much more complex and will require CSS and JavaScript to make it responsive on desktop and mobile.

Adding CSS and JS

Mobile

 

About me: I'm Paul. A SQSP User for 18 yrs, I've been a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee fuels my work.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment
  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.