cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to overwrite some classes of standard CSS with customized CSS

former_member187658
Participant
0 Kudos

Hi,

I am facing an issue while accessing css file in a pdk application. The scenario is:

1. I have a pdk app, which has 1 java file and 1 css. (There is no jsp file).

2. Java file displays data in a tree structure.

3. The CSS has been put in the CSS folder of this component.

4. This CSS is being referred in the .java file, and it is getting referred to as well because it reflects the results on deployment.

The problem is:

All the classes of the CSS are not getting accessed/referred/reflected.

The background color of the screen and font size and color of tree contents get changed but tree background color doesn’t get changed, even though those classes are present in the CSS. the CSS is not able to overwrite the standard CSS file classes for the tree background even though they are present in the customized CSS.

Can you please suggest why only some classes are getting accessed and some not? I am not accessing any class of CSS specifically by name.

Thanks & regards,

Anupreet

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The only way I know of in order to make sure the CSS classes are overwritten is to have the classes inline. In effect, have the following HTML code in your jsp

<style ...>

.youclass

</style>

You could put this HTML code in a separate JSP which is included in other JSP pages if you'd like.

Regrds

Dagfinn