cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

'CustomClass' not visible upon inspection

ague
13-Aquamarine

'CustomClass' not visible upon inspection

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?

ACCEPTED SOLUTION

Accepted Solutions
raluca_edu
17-Peridot
(To:ague)

Hi,

 

You can see custom class in style sheet, see attachment.

 

View solution in original post

3 REPLIES 3
raluca_edu
17-Peridot
(To:ague)

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

ague
13-Aquamarine
(To: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?

raluca_edu
17-Peridot
(To:ague)

Hi,

 

You can see custom class in style sheet, see attachment.

 

Announcements


Top Tags