Home › Forums › General discussion › Text Color column headers
- This topic has 9 replies, 2 voices, and was last updated 3 years, 11 months ago by Alexander Bautz.
-
AuthorPosts
-
-
January 12, 2021 at 14:44 #32442
Hello! I am trying to see if there is a way to change the header text color on disp/edit form. When I use the field CSS it changes the color of the entry form not the header. I also don’t want to change all headers only certain ones. Can I do this?
- This topic was modified 3 years, 11 months ago by Danielle Arcuri.
-
January 12, 2021 at 17:08 #32449
Hi,
Add this to your Custom CSS to change ALL:.ms-standardheader{ color:red; }
and this to only change the Title field:
#dffs_Title .ms-standardheader{ color:red; }
Alexander
-
January 12, 2021 at 18:06 #32451
Hi Alexander, thank you, unfortunately that did not work. I tried both together and then I also tried only 1 at a time.
I tried inspecting the page to see if the class code is different and I saw these two and tried that but that did not work either.
h3.ms-standardheader
td.ms-formlabel.sbs_formLabelAny other ideas?
-
January 12, 2021 at 18:33 #32459
Not sure why it does not work, but you can try adding !important like this:
.ms-standardheader{ color:red!important; }
Alexander
-
January 12, 2021 at 19:53 #32461
Ok, the Important works for changing all headers but if I want specific headers it is still not working. This is my code:
#dffs_Address .ms-standardheader{ color:red!important; }
-
January 12, 2021 at 20:03 #32463
If you right click and select “inspect” on the label – what do you see in the developer tools?
Alexander
-
January 12, 2021 at 20:11 #32465
I changed it back to title instead of address.
Attachments:
-
January 12, 2021 at 20:15 #32468
It’s most likely because of the nobr tag – change it like this:
#dffs_Address .ms-standardheader nobr{ color:red!important; }
Alexander
-
January 12, 2021 at 20:17 #32470
Nope, that still didn’t work… thank you though
-
January 12, 2021 at 20:25 #32472
When using sbs you might have to target it like this:
#sbs_FieldLabel_Address .ms-standardheader nobr{ color:red!important; }
Alexander
-
-
AuthorPosts
- You must be logged in to reply to this topic.