i have a normal Label and i want to set its font-size, font-family using CssStyle, but only color works
Is it a bug or by design?
Thanks for your help,
Yep, you are right. It’s as designed since the font property and the color properties also set the style. Use the Font property and the ForeColor property instead. Or use a css class and add the !important css marker. For inline styles you cannot override the inline styles set by the existing properties.
You can add a css class in a plain standard .css file in default.html or using the stylesheet component.
label1.CssClass = “test”;
Images below are at runtime.
Please login first to submit.