Jump to content

Aligning Form Fields Side-by-Side

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://jadeanthony.com/auditions-test

Hey friends!

I really need some help aligning a few fields of my Form Block, specifically the following fields:

  1. Date of Birth and Personal Pronouns
  2. Height and Vocal Range
  3. Performer's Phone Number and Performer's Email Address
  4. Agent's Phone Number and Agent's Email Address
  5. AND Upload Current Photo and Upload Current Résumé

 

Right now, I'm only using the following code(s) on the page:

<!-- SUBMISSIONS - Side-by-Side Pronouns -->
<style>
@media screen and (min-width:768px) {div
#block-1b95bc57b30acd0a0178
  .checkbox
  .option
  {float: left !important;
   width: 35% !important}}
</style>

and

<!-- SUBMISSIONS - Upload Files -->
<script src="//uploader.squarewebsites.org/sqs-form-upload.min.js"></script>

 

The page link is: https://jadeanthony.com/auditions-test

 

Can anyone help?

Thanks!

Edited by MissHazelJade
Link to comment
  • 2 weeks later...
  • Solution

Add to Design > Custom CSS

/* align form fields */
@media screen and (min-width:992px) {
/* date of birth pronouns */
.field-list.clear>fieldset:nth-child(3), .field-list.clear>fieldset:nth-child(4) {
    width: 50% !important;
    float: left !important;
}
/* height vocal range */
.field-list.clear>div:nth-child(5), .field-list.clear>div:nth-child(6) {
    width: 45% !important;
    float: left !important;
}
.field-list.clear>div:nth-child(5) {
    margin-right: 5%;
}
.field-list.clear>div:nth-child(7) {
    clear: left !important;
}
/* performer phone email */
.field-list.clear>*:nth-child(10), .field-list.clear>*:nth-child(11) {
    width: 45%;
    float: left;
}
.field-list.clear>*:nth-child(10) {
    margin-right: 5%;
}
.field-list.clear>*:nth-child(12) {
    clear: left;
}
/* argent phone email */
.form-wrapper .field-list>*:nth-child(15), .form-wrapper .field-list>*:nth-child(16) {
    width: 45% !important;
    float: left;
}
.form-wrapper .field-list>*:nth-child(17) {
    clear: left !important;
}
.form-wrapper .field-list>*:nth-child(15) {
    margin-right: 5%;
}
/* upload */
.form-wrapper .field-list>*:nth-child(19), .form-wrapper .field-list>*:nth-child(20) {
    width: 50% !important;
    float: left !important;
}
}

 

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

Link to comment
19 hours ago, tuanphan said:

Add to Design > Custom CSS


/* align form fields */
@media screen and (min-width:992px) {
/* date of birth pronouns */
.field-list.clear>fieldset:nth-child(3), .field-list.clear>fieldset:nth-child(4) {
    width: 50% !important;
    float: left !important;
}
/* height vocal range */
.field-list.clear>div:nth-child(5), .field-list.clear>div:nth-child(6) {
    width: 45% !important;
    float: left !important;
}
.field-list.clear>div:nth-child(5) {
    margin-right: 5%;
}
.field-list.clear>div:nth-child(7) {
    clear: left !important;
}
/* performer phone email */
.field-list.clear>*:nth-child(10), .field-list.clear>*:nth-child(11) {
    width: 45%;
    float: left;
}
.field-list.clear>*:nth-child(10) {
    margin-right: 5%;
}
.field-list.clear>*:nth-child(12) {
    clear: left;
}
/* argent phone email */
.form-wrapper .field-list>*:nth-child(15), .form-wrapper .field-list>*:nth-child(16) {
    width: 45% !important;
    float: left;
}
.form-wrapper .field-list>*:nth-child(17) {
    clear: left !important;
}
.form-wrapper .field-list>*:nth-child(15) {
    margin-right: 5%;
}
/* upload */
.form-wrapper .field-list>*:nth-child(19), .form-wrapper .field-list>*:nth-child(20) {
    width: 50% !important;
    float: left !important;
}
}

 

Brilliant! Thank you so much!

 

If I wanted to extend the width and height of the Select (dropdown medu) fields to match those of the Text fields, what code would I use?

Link to comment
On 6/23/2021 at 11:57 AM, MissHazelJade said:

Also @tuanphan, is there a way to put the City, State/Province, and Zip/Postal Code on the same line?

Use this code

/* select */
.form-wrapper .field-list .field select {
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
}
/* city state zip */
@media screen and (min-width:992px) {
fieldset.address>div:nth-child(n+4) {
    width: 31.333% !important;
    float: left !important;
}
}

 

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

Link to comment
  • 3 weeks later...
On 6/23/2021 at 11:57 AM, MissHazelJade said:

Also @tuanphan, is there a way to put the City, State/Province, and Zip/Postal Code on the same line?

Also, do you need fix these?

Site URL: https://jadeanthony.com/

1. (All devices) Make logo clickable?

jadeanthony.com-01-min.png

2. (Mobile) When entering the web a pop-up window appears with image on the left and text on the right. But on mobile, the image disappears.

jadeanthony.com-02-min.png

3. (Tablet-Shows) Make all text on same line

https://jadeanthony.com/shows#

jadeanthony.com-03-min.png

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

Link to comment

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.