Jump to content

Aligning Field Boxes in Form

Recommended Posts

I'm currently working on a form layout, and I'm encountering some alignment issues with the field boxes. I've attached a screenshot for reference.

image.png.da95dabe71cbb73d4902c2415b94e01a.png

As you can see, the email field box has a lot of unnecessary space compared to the phone field box. I'm aiming to have all the field boxes (Email and Loan Rate) neatly aligned.

I've included the code I used since I need phone and email, loan rate, and loan bal to be on the same line.

#collection-65f20da776e55c51956176d6{
.field-list {
display: flex;
flex-wrap: wrap;
}
  
.form-item:nth-child(1) {
width: 100% !important;
}
  
/* LEFT */
.form-item:nth-child(2), .form-item:nth-child(4) {
width: 40%  !important;
margin-right: 4% !important;
  }
/* RIGHT */
.form-item:nth-child(3) {
width: 56%  !important;
}
}

Link to comment
  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.