Jump to content

Two column form with border bottom only

Recommended Posts

Posted

Hey everyone, 

I do I go from the template form to a two column form with a border on the bottom only form. 

Can't seem to find the code to do that...

Thank you so much!

Posted

Try this Custom CSS to start for two columns:

@media only screen and (min-width:1000px) {
  .field-list .field:nth-child(odd) {
    width: 48% !important;
    float: left !important;
    z-index:99999;
  }
  .field-list .field:nth-child(even) {
    width: 48% !important;
    float: right !important;
    z-index:99999;
  }
}
.form-field-shape-square.form-field-border-all .sqs-block-form .form-item input, .form-field-shape-square.form-field-border-all .sqs-block-form .form-item textarea {
  border-width:0px;
  border-bottom:2px solid #000;
}
.form-wrapper .field-list input, .form-wrapper .field-list textarea, .form-wrapper .field-list input:focus, .form-wrapper .field-list textarea:focus {
    background: transparent !important;
}

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

The borders look good, however the columns get a little crumped with all the info. 

But with work it can be a great solution! 

No that I have the content directly on the background I wanted to change the input color and apply the line to boxes also

Posted
15 minutes ago, BeaCG said:

The borders look good, however the columns get a little crumped with all the info. 

If you want a 2 column form then you'll want a wider form generally.

15 minutes ago, BeaCG said:

But with work it can be a great solution! 

Yep, that code gives you a good start.

If you need any specific help with changes and design, let me know.

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

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

  • 1 year later...
Posted

Will the code supplied produce the attached results.  Also is it possible to reduce the row height, spacing and font size?  Will this two column form in Mobile show as a single column?

2 column shipping form.jpg

Posted
On 10/18/2024 at 11:50 PM, Mxyzptlk said:

Will the code supplied produce the attached results.  Also is it possible to reduce the row height, spacing and font size?  Will this two column form in Mobile show as a single column?

2 column shipping form.jpg

You can add these fields, then we use some CSS Grid to make it to 2 columns

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!)

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.