Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
laurencartmell

How do I position two form fields side by side?

Question

4 answers to this question

Recommended Posts

  • 1

Hi Lauren

There are many ways to do this, and it depends on what you want to achieve. In your particular case you only have one Text field (the telephone number) and one email field. We can therefore target these two field types and format them to site alongside each other (inline-block).

Add the following to Design > Custom CSS:


.form-item.field.email, .form-item.field.text {
 display: inline-block;
 min-width: 48.8%;
}

.form-item.field.email {
 margin-right: 1.4%;
}

The widths have been set to try to match the first/last name boxes above and to ensure that the boxes wrap in the same way at lower resolutions, without adding additional media queries.

I hope that helps. Let me know how you get on.

Paul

alt text

Like other moderators on this forum, I post answers to help fellow Squarespace users understand how to customise their sites.
If I've correctly answered your question, please Accept the answer by clicking Accept below. If it didn't help, feel free to ask for more help or wait for forum users to add their comments and/or answers.

To everyone else who reads this answer and finds it helpful, please vote it up using the up arrow. This will let other users know it's a good answer.
For more useful Squarespace tips see our website.

screen-shot-2017-07-15-at-140917.png.5769ef05e8a239839b14068142acef33.png


If a response has helped you, please give thanks using the  like-20-mag.png.3997345d620e40b4760b5d7a667cad54.png button.
Need personalised help? I'm a professional Developer who works with Designers internationally. You can book me via my company's website. www.sf.digital

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...