Skip to Content Skip to Menu

Responsive Field label in css ?

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 6 months ago #244458 by dotcom22
Responsive Field label in css ? was created by dotcom22
When editing CB profile on mobile device, fields label are not responsive even when using bootstrap and my responsive template. Label and field are "inline" and I would like get all label in up and field in down. It seem CB 2.0 will correct that but meanwhile I would like found a solution. Maybe in css where with a single class, I could apply a style for all existent and future fields and this even for standard desktop view.

any clue ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #244502 by krileon
Replied by krileon on topic Responsive Field label in css ?
CB 1.x doesn't have complete responsive design. This is no longer the case with CB 2.0 as we've made entire frontend and backend to use Bootstrap 3.0 with responsive classes. There's no fix for 1.x as it requires massive styling and HTML output changes. You can try adding @media style usage for the labels to adjust their appearance based off width, but not sure how well that'll work with HTML structure of 1.x.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 5 months ago #245168 by dotcom22
Replied by dotcom22 on topic Responsive Field label in css ?
well I found this code:
Code:
.cb_template_bootstrap .cb_form_line > .cb_field {clear: both;} .cb_form_line div div .cb_form_line > label, .cb_template_bootstrap .cb_form_line > label { text-align: left; padding-top: 10px; padding-left: 10px; width: 100%; }


and this work well on my smartphone. Now I would like to not apply this style to some specific checkbox because their label are very short and label+field can be displayed inline. After almost 2 hours of test I still unable to find the solution because I cannot well target these checkbox for disable the previous style which apply globally on all label. I tried also to insert important! declaration but without success.

Have you a suggestion please ? I know is not easy without see the code but this case happen in user edit backend. If you want I can give you access.

many thank

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245178 by krileon
Replied by krileon on topic Responsive Field label in css ?
CB 2.0 has full responsive design. I can not help you write CSS for your site, we do not provide custom coding. If you want better responsive usage in 1.x you can review how bootstrap grid styles are setup below. Checkbox labels should not be made responsive. You only need the field labels themselves, which should become stacked.

getbootstrap.com/css/#grid


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