Jump to content

[Share] Form Block: make side by side checkbox

Recommended Posts

Suppose you have a form with a checkbox like this. You need to make Location field checkboxes side by side.

image.thumb.png.66ab6938e5f04d38b02f63200c06babd.png

If you can't make it work, you can send link to page where you use Form Block. I can check easier.

#1. First, use below tool to find the ID of the Form Block

In my example, we will have: #block-yui_3_17_2_1_1722761113944_3710

image.thumb.png.da275dc24305dc4baec9040a27b6c606.png

#2. Next, you find to know this.

  • First field (Name): :nth-child(1)
  • Second field (Email): :nth-child(2)
  • Third field (Subject): :nth-child(3)
  • ...

image.png.08810534cfa9d0b0703c2b517eac61d8.png

#3. Use this code to Custom CSS box

#block-yui_3_17_2_1_1722761113944_3710 {
fieldset.checkbox:nth-child(4) {
    display: block !important;
}
fieldset.checkbox:nth-child(4) .option {
    float: left !important;
    width: 45% !important;
    clear: none !important;
    margin-bottom: 10px;
}}

image.png.8ace6a8e46b099b61b479256798db1db.png

#4. Result

image.png.4335741b78cbfa3c2e06dada9f168abc.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
  • Replies 0
  • Views 702
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.