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!

[SOLVED] Same field different CSS - Help!

12 years 2 months ago - 12 years 2 months ago #213699 by butchtones
[SOLVED] Same field different CSS - Help! was created by butchtones
Hi I have the same field that appears to share CSS.

So, for example:
Both Jane and John are using:
"cb_celebrities Celebrities textarea Clients"

Both are ID with "cbfr_68" but they have different classes one is "sectiontableentry1" & the other is "sectiontableentry2"

How can I fix this? I need them to be uniform.








Complete CSS:
<div id="cbfr_68" class="sectiontableentry1 cbft_textarea cb_form_line cbclearboth cbtwolinesfield">


<div id="cbfr_68" class="sectiontableentry2 cbft_textarea cb_form_line cbclearboth cbtwolinesfield">
Attachments:
Last edit: 12 years 2 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48708
  • Thanks: 8319
  • Karma: 1447
12 years 2 months ago #213725 by krileon
Replied by krileon on topic Re: Same field different CSS - Help!

How can I fix this?

There's nothing to fix, it alternates the rows 1 by 1. Example as follows.

Row1: sectiontableentry1
Row2: sectiontableentry2
Row3: sectiontableentry1
Row4: sectiontableentry2

You can adjust the styling of these classes by editing your Joomla template CSS as they're not styled by CB.


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.

12 years 2 months ago - 12 years 2 months ago #213744 by butchtones
Replied by butchtones on topic Re: Same field different CSS - Help!
How does it get assigned to #1 or #2?

For the userlist I have adjusted the CSS to display in two different colors so it's more easily viewed. Once inside the profile I they should all be white... and it was that way before.

For example user ID #47 and ID #48
Since they alternate,as you said, they should be different on the profile page right? They are not. Image attached

On the initial user list one has a white bg and the other blue. When you go into their profiles they are both white. This is what I want.

I currently have user list of user id #47 - #76. When I have them enter the information in "Celebrities" I need the profiles to look consistent. However, users #54, 68, 73,74,75,76 have a blue back round in their Celebrities field.

When I remove the back round color from "Celebrities" it affects the userlist page too.

Am I making sense? I don't know if I'm explaining this well enough.

I can give you access if you want to check it out.

Thanks Kyle



Attachments:
Last edit: 12 years 2 months ago by butchtones.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48708
  • Thanks: 8319
  • Karma: 1447
12 years 2 months ago #213745 by krileon
Replied by krileon on topic Re: Same field different CSS - Help!

How does it get assigned to #1 or #2?

It's added in source when it outputs the field rows.

For the userlist I have adjusted the CSS to display in two different colors so it's more easily viewed. Once inside the profile I they should all be white... and it was that way before.

Userlists and many other locations use those same classes to alternate rows. You just need to make your Userlist CSS more specific by adding a namespace selected, example as follows.
Code:
.cbUsersList .sectiontableentry1 { background-color: black; }

Since they alternate,as you said, they should be different on the profile page right? They are not. Image attached

Userlist rows does not relate to field rows on profile; they can and will be completely different, but they use the same alternating class.


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.

12 years 2 months ago #213753 by butchtones
Replied by butchtones on topic Re: Same field different CSS - Help!
So, to rid myself of the blue of the profile inner pages I'm creating new CSS of :

.cbProfile .sectiontableentry1 {
background-color: white;

or (depending on the involved piece)

.cbProfile .sectiontableentry2 {
background-color: white;

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

12 years 2 months ago #213961 by butchtones
Replied by butchtones on topic Re: Same field different CSS - Help!
Actually, this isn't working. I need to have a clear back round as the others do. If I change to white it blocks the back round image.

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

Moderators: beatnantkrileon
Powered by Kunena Forum