Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] how to set a field to different colour in list

  • hicksan
  • hicksan
  • OFFLINE
  • Posts: 28
  • Thanks: 1
  • Karma: 0
8 years 4 months ago #283045 by hicksan
Hi Krileon,

I got the field format bit to work fine.

Now trying to format a column in a list. I want to make the entire column right justified.

The column has an input box labelled CSS Class.

I named this box: "Court_Column_1"

Then added the following to my template.css file:

Court_Column_1 {
text_align: right;
}

But no effect. Clearly I am naming it wrongly, as before. How do I find the name?

I tried inspect element with the table displayed. This is the 'outer' html for the first row / first column:
Michael John Orr, MA(Oxon)Master
2015
2015

From this it looks like my name is correctly being applied to the object. So how and where do I put the format code?

Thanks,

Andrew

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

  • hicksan
  • hicksan
  • OFFLINE
  • Posts: 28
  • Thanks: 1
  • Karma: 0
8 years 4 months ago #283046 by hicksan
Sorry should be

.Court_Column_1 {
text_align: right;
}

It still dousn't change anything but it does appear when I inspect element - only crossed out with a yellow alert sign next to it.

Screenshot attached.
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 4 months ago #283058 by krileon
Your CSS is not valid. text_align does not exist. It's text-align. See the below for CSS learning resources.

www.w3schools.com/css/default.asp

developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started


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.
The following user(s) said Thank You: nant, hicksan

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

  • hicksan
  • hicksan
  • OFFLINE
  • Posts: 28
  • Thanks: 1
  • Karma: 0
8 years 4 months ago #283063 by hicksan
Well spotted Sir.

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

Moderators: beatnantkrileon
Powered by Kunena Forum