Display radio button field item horizontally

  • Alex
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 3 months ago #109763 by Alex
Is it possible to display radio button field items horizontally on desktop computers but collapse to the usual vertical (one item per row) in mobile devices?

Presumably this is a custom css fix.

Thanks!

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #109767 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Display radio button field item horizontally
Hi Alex

To be honest, I am unsure about it as I am not good at css. Could you please post the link here? I will have my developer to look at it and give you the answer. Honestly, my developer will only come back on Wednesday, so please wait for us

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Alex
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 3 months ago #109772 by Alex
Hi Tuan,

Would it be ok to open a ticket as the site is in development? No problem about waiting until next week.

Thanks,
Alex

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #109774 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Display radio button field item horizontally
Yes. that's OK. Better submit your ticket on Thursday

Regards,

Tuan
The following user(s) said Thank You: Alex

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago - 7 years 3 months ago #109777 by James Riley
Replied by James Riley on topic Display radio button field item horizontally
As you guessed, it is fairly easy to change via CSS. The CSS to use however depends on whether you have your radio/checkbox fields set to display horizontal or vertical by default. I am just making tweaks to the live demo using my browser's property inspector, so I can't guarantee that this CSS is 100% production ready, but it is a good starting point :)

If horizontal by default, it looks like this might do the trick:
Code:
@media (max-width: 768px) { .row-fluid [class*="span"] {float:none;}}

If vertical by default, then this seems to work:
Code:
@media (min-width: 769px) {.eb-container .nav { width: auto; display: inline-block; padding-right: 20px;}}
(edit made to CSS code -- replaced "\" with "}". Late-night typo... )

Try adding one (edit:) [strike]of[/strike] or the other CSS declarations to {Event Booking -> Configuration -> Custom CSS}.
Not being able to test this on your site, I don't know if it *will* work or not, but it seems to make the change happen on the demo site.

James Riley .: EventBooking user since 2014 ::: JoomDonation user since 2016 :.
.: grfx & web design / IT / AV @ St. Therese Institute of Faith and Mission, Bruno, SK, Canada :.
Last edit: 7 years 3 months ago by James Riley. Reason: as noted
The following user(s) said Thank You: Tuan Pham Ngoc, Lon Czarnecki

Please Log in or Create an account to join the conversation.

  • Alex
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 3 months ago #109853 by Alex
Thanks James. I'll give this a try!

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc