1

I'm trying to set an specific CSS just for a certain item on my form. I would like to make it bold and in a different color. I used the following statement. Why is it not working?

    myStaticTextItem.setCellStyle("color:#FF0000; font-weight: bold;");
08Dc91wk
  • 4,254
  • 8
  • 34
  • 67
Felix
  • 140
  • 10

1 Answers1

1

You can use setTextBoxStyle to assign CSS class to your input box of that element.

There are additional methods for assigning CSS classes for special parts of element like title, hover, hint and picker icon. More here.

dafilipaj
  • 1,064
  • 14
  • 24
  • I also tried with the setTextBoxStyle, but it's not working either – Felix Jul 20 '15 at 15:40
  • Hmm, it's a lot of code... but this is supposed to be very simple, it's just an StaticTextItem that is part of a form... – Felix Jul 21 '15 at 10:06
  • Im not sure. Might be that some other CSS rule of parent element is overriding your new style. – dafilipaj Jul 21 '15 at 14:44