Jump to content

Multi column layout for checkboxes on a form

Go to solution Solved by Web_Solutions,

Recommended Posts

I have a long form with sections containing a large number of checkbox items, I would like these checkbox items to appear as 4 column on desktop and 2 column on mobile.

I can find css for making the form 2 column, but that's not what Im after, I need the checkbox sections to be multi column.

https://seabass-hexahedron-tcln.squarespace.com/bad-business-members-3

 

@tuanphan  maybe you are able to help me :)))

 

Any help very much appreciated and thanks in advance...

 

Steph

 

 

Edited by TNG
incorrect link
Link to comment
1 hour ago, TNG said:

I have a long form with sections containing a large number of checkbox items, I would like these checkbox items to appear as 4 column on desktop and 2 column on mobile.

I can find css for making the form 2 column, but that's not what Im after, I need the checkbox sections to be multi column.

https://seabass-hexahedron-tcln.squarespace.com/bad-business-registration

pass TNG

 

@tuanphan  maybe you are able to help me :)))

 

Any help very much appreciated and thanks in advance...

 

Steph

 

 

What is the login?

 

Screenshot_212.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
  • Solution
36 minutes ago, TNG said:

Bumping my topic 🙂

 

https://seabass-hexahedron-tcln.squarespace.com/bad-business-members-3

 

Wanting to make my list of checkboxes 4 column instead one very long list!

 

I hope someone can please help me... thank you in advance....

 

@tuanphan

@Web_Solutions

 

 

 

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

.fe-block-b4f489f308338427caba {
  .checkbox {
    flex-direction: row !important;
    legend {
      flex: 0 0 100%;
    }
    @media(min-width: 768px) {
      .option{
        flex: 0 0 22% !important;
      }
    }
    @media(max-width: 767px) {
      .option{
        flex: 0 0 46% !important;
      }
    }
  }
}

 

Screenshot_215.png

Screenshot_214.png

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
5 hours ago, TNG said:

Amazing thank you! 

 

I changed the css to be on the data section id instead of .fe-block-b4f489f308338427caba but apart from that worked perfectly!

Welcome!

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.