Skip Navigation

[Resolved] Inline Checkboxes

This thread is resolved. Here is a description of the problem and solution.

Problem:

Show my checkboxes on my form horizontal rather than vertical

Solution:

You can try to use CSS codes to style it, for example:

https://toolset.com/forums/topic/inline-checkboxes/#post-1559535

Relevant Documentation:

https://toolset.com/documentation/user-guides/front-end-forms/styling-cred-forms/

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by SteBlood 4 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1559097
Annotation 2020-03-22 162307.jpg

Tell us what you are trying to do?
Show my checkboxes on my form horizontal rather than vertical

Is there any documentation that you are following?
I've searched far and wide and I cannot for the life of me figure it out.

What is the link to your site?
hidden link

#1559535
style-checkboxes.JPG

Hello,

You can try to use CSS codes to style it, for example:

ul.wpt-form-set-checkboxes-wpcf-caravan-features{
display: inline-flex;
}
ul.wpt-form-set-checkboxes-wpcf-caravan-features li{
margin-left: 1.25rem;
}

See screenshot style-checkboxes.JPG

More help:
https://toolset.com/documentation/user-guides/front-end-forms/styling-cred-forms/

#1560429

My issue is resolved now. Thank you!

#1561207

Hello, this worked in theory, however, the selection of checkboxes move outside my theme design.

Please take a look at the link below;

hidden link

Is there a simple fix for this?

#1561241

Hello,

Please try to modify the CSS codes as below:

ul.wpt-form-set-checkboxes-wpcf-caravan-features{
display: flex;
flex-wrap: wrap;
}
ul.wpt-form-set-checkboxes-wpcf-caravan-features li{
margin-left: 1.25rem;
}

And test again

More help:
hidden link

#1609635
checkboxes.jpg

Hello, apologies for re-opening this topic, however, I believe it is relative.

Is it right to assume styling hierarchical checkboxes is different to just standard checkboxes?

I've styled the check boxes using the following code;

ul.wpt-form-set-checkboxes{
display: inline-flex;
  flex-wrap: wrap;
}
ul.wpt-form-set-checkboxes li{
margin-left: 1.25rem;
}

However, as you can see, the countries have style correctly, but the counties have not.

Is there something I need to do to have these style inline to reduce the length of my form?

Thanks in advance.