×

Error

Please login first

[SOLVED] Drop Down Multi Select width

11 years 8 months ago - 11 years 8 months ago #208456 by flefranc
[SOLVED] Drop Down Multi Select width was created by flefranc
Hello,
In my registration form, I want all the fields to be the same width. I would like the drop-down multiselect has the same witdh then others fields. Where I can fix it ?
Sincerely

CB Version: 1.8.1
CBSubs Version: 2.0.2
CMS Version: Joomla 2.5.x
PHP Version: 5.4.4
Attachments:

Please Log in to join the conversation.

11 years 8 months ago #208472 by krileon
Replied by krileon on topic Re: Drop Down Multi Select width
Using CSS to adjust the size is best approach. You can also edit the side by editing the fields in CB > Field Management; entirely up to you which approach you use. Below is example CSS.
.cbRegistration input,
.cbRegistration select,
.cbRegistration textarea {
	width: 150px !important;
}


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 to join the conversation.

11 years 8 months ago #208489 by flefranc
Replied by flefranc on topic Re: Drop Down Multi Select width
Hello,
Thanks for your help.

I have found already what you propose : It works for fields like text but not for multiselect.

The width of multiselect field cannot be edited ( only the size ) in the CB administration portal.

And in CSS I cannot adjust it. If in template.css I modify :

.filedcell input, .fieldcell select {
min-width : 200px;
}

It works for all the fields ( radio or text ) except the multiselect.

Sincerely

Please Log in to join the conversation.

11 years 8 months ago #208502 by krileon
Replied by krileon on topic Re: Drop Down Multi Select width
My above example will modify select fields too. Your CSS is changing the minimum width and is not giving it a fixed width. It's also missing the important tag, which will allow it to override all other size adjustments.


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 to join the conversation.

11 years 8 months ago #208556 by flefranc
Replied by flefranc on topic Re: Drop Down Multi Select width
Hello,
Thank you it works : i did not know the important tag. I saw it in CSS but I believed it was a comment ....
Thanks you for your help
Sincerely

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.176 seconds

Facebook Twitter LinkedIn