Jump to content

Displaying radiobuttons horizontally breaks the layout of selected-option

Go to solution Solved by Ziggy,

Recommended Posts

I have created a form where is radiobuttons. If I want to display them horizontally, then the selection buttons are disappearing from all except the first one. In this case, it shows only no 1, but when you click other options, it still shows no 1 to be selected. The code I have used is

.form-item.field.radio {
  display: flex;
}

When the buttons are displayed vertically, it works correctly. I have tried everyghing from grid-inline, inline e.g. in a couple of sitesbut it breaks the selections completely. Does anyone know why it does that and how to fix this? Much appreciated.

radiobutton.PNG

radioButton2.PNG

Link to comment

Can you share your website URL and this page?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Try this code:

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
  • Solution

Try adding this:

.FIHoQa7qSveb7OWZMCyF, .hRT9UlCFgnP8dgzh7Azj {
    left: auto !important;
}

It works in dev tools, but I'm not convinced about those classes!

image.png.c7b76dd3acb34cdf61f61137db4ed0c8.png

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Brilliant!

Can you mark my post as the solution and give it a like? 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.