Changing format of List Item Description

Forums Dynamic Forms for SharePoint Changing format of List Item Description

Viewing 1 reply thread
  • Author
    Posts
    • #30785
      Lana
      Participant

      Hi Alex,
      I want to make the description text for lists bold and 12pt. When I input CSS on the f12 code, it works on the screen, but if I paste it in the CSS for DFFS it just makes the Created and Modified at the bottom of the form bold and 12 pt, not the actual description. Have tried it in Custom CSS and Field CSS with the same result. The description field does not change.
      Here is the CSS I am trying to use:
      .ms.metadata,.ms-descriptiontext {
      font-weight: bold !important;
      font-size:12pt !important;
      color: #000000 !important;
      }
      I don’t want the Created an modified changed, just the description input when the column gets created. I have JS that moves it above the Response instead of below, and would like it to not be so small and unnoticeable.
      Can you help?
      Thanks!
      Lana

    • #30788
      Alexander Bautz
      Keymaster

      Hi,
      The class ms-descriptiontext is used multiple places so you must narrow your css selector by adding ms-formbody like this to only select elements with the class ms-descriptiontext within elements with class ms-formbody:

      .ms-formbody .ms.metadata, .ms-formbody .ms-descriptiontext {
        font-weight: bold !important;
        font-size:12pt !important;
        color: #000000 !important;
      }

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.