Jump to content

Radio buttons Inline, but checkboxes in separate lines

Recommended Posts

Hi folks.

I have a form that has some radio buttons and some checkboxes.  By default, each radio button and checkbox option appears in its own line.  Is there a way to make only the radio buttons appear inline (in the same line) while leaving the checkboxes in their own separate lines?  I was able to find the following code, but this affects both radio buttons and checkboxes and makes them all appear inline.

 

    /* When viewport is 1088 pixels minimum */
   @media only screen and (min-width: 1088px) {
     .form-wrapper .field-list .field .option {
       /* Show radio buttons side-by-side */
       display: inline;
       margin-right: 5px;
   }
}

Thank you.

 

 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

2 hours ago, BalletReign said:

Hi folks.

I have a form that has some radio buttons and some checkboxes.  By default, each radio button and checkbox option appears in its own line.  Is there a way to make only the radio buttons appear inline (in the same line) while leaving the checkboxes in their own separate lines?  I was able to find the following code, but this affects both radio buttons and checkboxes and makes them all appear inline.

 

    /* When viewport is 1088 pixels minimum */
   @media only screen and (min-width: 1088px) {
     .form-wrapper .field-list .field .option {
       /* Show radio buttons side-by-side */
       display: inline;
       margin-right: 5px;
   }
}

Thank you.

 

 

Can you share your URL to this page so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.