Skip to Content Skip to Menu

Custom field CSS class?

  • bascherz
  • bascherz
  • OFFLINE
  • Posts: 228
  • Thanks: 29
  • Karma: 11
3 years 11 months ago - 3 years 11 months ago #322025 by bascherz
Custom field CSS class? was created by bascherz
RE: www.joomlapolis.com/forum/153-professional-member-support/235064-solved-can-i-do-this-with-cb-conditionals-or-somehow

krileon wrote: Set each field to profile edit display to "Yes, 2 Lines with Title" then in the CSS Class parameter add myFieldRows class. Next use the following CSS.

Code:
.myFieldRows { width: 30%; display: inline-block; vertical-align: top; } .myFieldRows + .myFieldRows + .myFieldRows + .myFieldRows > .control-label { display: none; }

That will cause each field to display side by side with a 30% width so you'll get 3 fields per row. The second part of the CSS hides the titles of all the other rows except for the first row. You can get rid of the second chunk of CSS if you set your the 4th field and onward to display in profile edit as "Yes, 1 Line without Title".


I think this is what I want to do also. So I put the CSS Class parameter to "myFieldRows", but then where is that CSS entered?

Thanks,
Bruce

Bruce S - Vienna, VA
Last edit: 3 years 11 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
3 years 11 months ago #322034 by krileon
Replied by krileon on topic Custom field CSS class?
Please do not reply to a 4 year old topic. Create a new topic and reference the old topic if you feel it is necessary.

The "CSS Class" parameter for fields is under the Global tab on the right when editing a field in CB > Field Management. It's always added to the div surrounding the fields entire display.


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