Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

Two drop down menu's next to each other.

12 years 9 months ago #198491 by vincebailey
Two drop down menu's next to each other. was created by vincebailey
Hello everyone,

I am currently trying to add a field where the user can add their height to their profile, instead of having a single messy drop down menu with 0'1" to 7' I would like to have 2 drop down menu's in line next to each other, one for feet, and one for inches. Very similar to how the date feature works, but with only 2 columns. Is their anyway to achieve this?

Thank you.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 8 months ago #198531 by krileon
Replied by krileon on topic Re: Two drop down menu's next to each other.
Only way to do that is use CSS to move the fields to be side by side using a float or something of the sort. Example as follows will move 2 drop-down fields to be side by side (they should be directly placed after one another).
Code:
.cbEditProfile #cbfr_92 { position: relative; top: -27px; left: 270px; } .cbEditProfile #cbfr_92 label, .cbEditProfile #cbfr_91 .cbFieldIcons { display: none; }

Please note I am moving the element in respect to how it is placed on my template. You may need to adjust "top" and "left" to fit your template. Also note the above is with DIV layout and the IDs of 2 fields on my install, which would also need to be adjusted. The above is just an example of 1 possibility to do this. Another option is to use CB Auto Actions to include jQuery in the header and move the elements using jQuery (easier and more reliable then CSS).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • cesarmtz
  • cesarmtz
  • OFFLINE
  • Posts: 41
  • Thanks: 1
  • Karma: 0
12 years 1 month ago #216329 by cesarmtz
Replied by cesarmtz on topic Re: Two drop down menu's next to each other.
I would like to do the same. Which file should I look at?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
12 years 1 month ago #216347 by krileon
Replied by krileon on topic Re: Two drop down menu's next to each other.
Your Joomla template CSS file is best place as it's least likely to change often.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum