Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
I have added a CustomClass to a datetimepicker widget. I then referenced my class in my css to make a background color change, and it wasn't working. Upon inspecting the element using my browser's inspection tools, I don't see the class anywhere in the html. If I specify a 'CustomClass' in a widget, shouldn't I see it upon inspection in the browser?
Anyone run into this before? Solutions? Or is this a know bug?
Solved! Go to Solution.
Hi,
In some cases CSS class are overwritten during runtime.
Try to use !important in your CSS class to make it work.
Best regards,
Raluca Edu
I've added !important to the attribute itself (like: "background-color: pink !important;"), but it's the custom class name that's not even visible upon inspection.
For example, if I add this custom class, like this (or, see attachment if not downloading):
But when I go to inspect the page, 'test-class' is not visible as a class on any html. Rather, I can only see it being called on the style sheet.
Is this expected behavior?
Hi,
You can see custom class in style sheet, see attachment.