0

I got a FluentForm form embedded in a wordpress page. I need to style one of the labels that don't have an ID or class nor can I add one. Is there a way to style what is marked in the screenshot below?

enter image description here

CodeForGood
  • 704
  • 4
  • 14
  • 1
    Does this answer your question? [Can I write a CSS selector selecting elements NOT having a certain class or attribute?](https://stackoverflow.com/questions/9110300/can-i-write-a-css-selector-selecting-elements-not-having-a-certain-class-or-attr) – chazsolo Aug 03 '21 at 19:58

2 Answers2

4

Since the label has a for attribute, you can use that in your selector.

label[for="selector"] {
  color: red;
  font-weight: bold;
}
<label for="selector">Pick Me</label>
Paulie_D
  • 102,164
  • 10
  • 117
  • 144
2

You can select label with label[for=ff_150_description_3] and style it:

label[for=ff_150_description_3] {
  color: red;
}
<label for="ff_150_description_3">aaa</label>
Nikola Pavicevic
  • 13,800
  • 6
  • 18
  • 38