Jump to content

Form Blocks: Multiple Columns

Recommended Posts

On 4/12/2023 at 9:15 PM, FTWSGEM said:

Could I grab some assistance with this too please? I tried all the codes in this thread but none seemed to work for my site. I'd love to have the form in two columns, maybe black text boxes with white text if possible?

https://ftws-progress.squarespace.com/

password: happy123

Thank you

Hi,

What should it look like?

image.thumb.png.10be7390fd51e1de9255e96dbdfefc67.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
3 hours ago, tuanphan said:

Hi,

What should it look like?

image.thumb.png.10be7390fd51e1de9255e96dbdfefc67.png

I was hoping the last few fields could be to the side of the others rather then one long form. It's no biggie now but I would be interested in knowing how it is done for future use. Thank you 🙂

Link to comment
On 4/15/2023 at 9:18 PM, FTWSGEM said:

I was hoping the last few fields could be to the side of the others rather then one long form. It's no biggie now but I would be interested in knowing how it is done for future use. Thank you 🙂

This or?

image.thumb.png.c2c1370a6df81b1c687eb8fb2bc89b63.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
  • 2 months later...

Hi @tuanphan we have a client who has a lengthy portion of their form at the top of their landing page, and we would like to make the check box area two columns if possible. Right now, I have that nth-child(8) set to 100%, so it's easier to look at, but let me know how you'd recommend we modify it to achieve the 2 columns. Thank you in advance!  Here is the link below for reference. https://www.consultationschlosserdesign.net/

Screenshot 2023-07-10 at 10.41.02 AM.png

Edited by Dovely2023
Link to comment
On 7/10/2023 at 10:37 PM, Dovely2023 said:

Hi @tuanphan we have a client who has a lengthy portion of their form at the top of their landing page, and we would like to make the check box area two columns if possible. Right now, I have that nth-child(8) set to 100%, so it's easier to look at, but let me know how you'd recommend we modify it to achieve the 2 columns. Thank you in advance!  Here is the link below for reference. https://www.consultationschlosserdesign.net/

Screenshot 2023-07-10 at 10.41.02 AM.png

Add to Design > Custom CSS

/* Homepage form block */
@media screen and (min-width:768px) {
div#block-yui_3_17_2_1_1614627766658_7664 fieldset .option {
    width: 30% !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
9 hours ago, tuanphan said:

Add to Design > Custom CSS

/* Homepage form block */
@media screen and (min-width:768px) {
div#block-yui_3_17_2_1_1614627766658_7664 fieldset .option {
    width: 30% !important;
    float: left !important;
}
}

 

Thank you! Worked perfectly.

Link to comment
  • 2 weeks later...

Hi @tuanphan, wondering if this design might be possible...

 

Site: https://nikkiromansconsulting.squarespace.com/

PW: nikki

 

Here's what my client is after:

image.thumb.png.0c0884f6cee0273a3b0880979423f2ed.png

 

I'm having trouble with the request box on the right hand side - because it's the last field it's in line with the Email field above it, but not sure how (or if it's possible) to get the title in line with the First Name field and get the field size to expand to the bottom in line with the Email field border.

Here's the code I've got so far - I'm wondering if I might need to use columns instead?

@media @desktop {
  #collection-64bcdd2331e41518f158e1d9 {
    .field-list {
      display: flex;
      flex-wrap: wrap;
    }

    /* LEFT */
    .form-item:nth-child(1), .form-item:nth-child(2), .form-item:nth-child(3), .form-item:nth-child(4), {
      width: 48%  !important;
      margin-right: 4%;
    }
    /* RIGHT */
    .form-item:nth-child(5) {
      width: 48%  !important;
    }
  }
}

 

So this is what it looks like with above code:

image.thumb.png.3650518a2bf3b00504115660c3800993.png

If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆

Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business.

WEBSITEINSTAGRAM

 

Link to comment
15 minutes ago, CassAggett said:

wondering if this design might be possible...

You can probably achieve this with grid. This starts with me showing an effect but I also point to a guide later in the thread.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
3 hours ago, creedon said:

You can probably achieve this with grid. This starts with me showing an effect but I also point to a guide later in the thread.

Thanks for the links! I'll have to have a play with it tomorrow.

If this helped you, please like or mark my solution as answer so others can scroll to it quickly 👆

Cass Aggett is a Squarespace website designer for go-getting women – no matter what stage of business.

WEBSITEINSTAGRAM

 

Link to comment
  • 1 month later...
4 hours ago, VeeBee said:

I know you mentioned something about the breakpoint

Wrap any forms you want to have two columns in a media query.

https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Media_queries

You already have some so you can move your rulesets into an existing one or make up new ones.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.