Jump to content

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

Recommended Posts

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

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

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide 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 completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

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

 

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide 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 completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

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.