on 02-06-2008 8:43 AM
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 doesnt 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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.