cancel
Showing results for 
Search instead for 
Did you mean: 

Style sheets are getting applied even though am not referring them.

Former Member
0 Kudos

Hello,

I have uploaded 2 custom style sheets under "km/docs/etc/wpceditor/css/runtime". I am referencing only one stylesheet in my jsp layout. The web pages are using both custom style sheets in the runtime. How can I make the layout use only one custom style sheet that I am referencing in the JSP.

Accepted Solutions (1)

Accepted Solutions (1)

vishal_gupta15
Contributor
0 Kudos

Hi Tony,

Not very sure but i experienced that by specifying the css in JSP we are forcing the layout to use that css. But if some styles does not match in that specified css Then it will refer the other css present at runtime folder.

_Vishal

Former Member
0 Kudos

Hi Vishal,

Can you be more specific when you said


"But if some styles does not match in that specified css Then it will refer the other css present at runtime folder."

In my case,am using 3 custom style sheets(File1.css, File2.css, File3.css). At run time, all my pages are using all 3 style sheets, even though, I have referenced only one stylesheet in the JSP layout:


<LINK REL="stylesheet" HREF="irj/go/km/docs/etc/wpceditor/css/runtime/File1.css" />

Thanks for your response.

vishal_gupta15
Contributor
0 Kudos

Hi Tony,

Let you have some tag in xsl <text1> but for this you did not defined any thing in File1.css then it will try to pick from File2.css .

For your case try to refer CSS (File1.css) in your XSL. By using following code

<link rel="stylesheet" type="text/css" href="path to .css file"/>

_Vishal

Answers (2)

Answers (2)

former_member388485
Contributor
0 Kudos

Hi Tony,

In you custom JSP and xsl files you should assign your own classes and IDs to the html elements.

That way the relevant styling information will come only from your own css files, and you'll be able to control the style of each element in your pages.

Kind regards,

Avishai Zamir

former_member388485
Contributor
0 Kudos

Hi,

All css files under the runtime directory will be included in your page automatically.

Kind regards,

Avishai Zamir

Former Member
0 Kudos

Hi Avishai,

Is there a work around for this ?