Text Color column headers

Forums General discussion Text Color column headers

Viewing 9 reply threads
  • Author
    Posts
    • #32442
      Danielle Arcuri
      Participant

      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?

    • #32449
      Alexander Bautz
      Keymaster

      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

    • #32451
      Danielle Arcuri
      Participant

      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_formLabel

      Any other ideas?

    • #32459
      Alexander Bautz
      Keymaster

      Not sure why it does not work, but you can try adding !important like this:

      .ms-standardheader{
          color:red!important;
      }

      Alexander

    • #32461
      Danielle Arcuri
      Participant

      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;
      }
    • #32463
      Alexander Bautz
      Keymaster

      If you right click and select “inspect” on the label – what do you see in the developer tools?

      Alexander

    • #32465
      Danielle Arcuri
      Participant

      I changed it back to title instead of address.

      Attachments:
    • #32468
      Alexander Bautz
      Keymaster

      It’s most likely because of the nobr tag – change it like this:

      #dffs_Address .ms-standardheader nobr{
          color:red!important;
      }

      Alexander

    • #32470
      Danielle Arcuri
      Participant

      Nope, that still didn’t work… thank you though

    • #32472
      Alexander Bautz
      Keymaster

      When using sbs you might have to target it like this:

      #sbs_FieldLabel_Address .ms-standardheader nobr{
          color:red!important;
      }

      Alexander

Viewing 9 reply threads
  • You must be logged in to reply to this topic.