Home > Back-end >  How change fields helptext style django?
How change fields helptext style django?

Time:10-14

I want change text color etc of help_text in fields models.

I see in html that there is helptext class: <span >Sentenses</span> so I try in my css file:

.helptext {
        color: #bd512f;
}

and it dont do changes. Is there collision with bootstrap?

CodePudding user response:

In CSS, the style that is specified last is applied. Perhaps the styles of your frameworks are loaded later than the one you specified. Also, inline styles like your <span> have even more precedence.

CodePudding user response:

I found the answer by code:

.helptext {
        color: #bd512f !Important;
}
  • Related