Skip to Content
author's profile photo Former Member
Former Member

How to link a css file in the xsl file

Hi

I would like to know how to include link to my .css file in my .xsl file.

The scenario here is I want include a background color in my ShowForm.I am trying to do the same using css.

This is the code snippet in my css file

.outerbody {

background-color: B1C1CF;

}

This is how I tried to include a link in my xsl file

<link href="/irj/go/km/docs/Testing/MyNewsDemo/css_test.css" type=text/css rel=stylesheet>

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 07:06 AM

    Can you please tell me what is xsl file ?

    Are you developing PAR based applications ?

    Add a comment
    10|10000 characters needed characters exceeded

    • So how you do this is:

      1. On your form in the XMLBuilder add a new Label at the very top of your form.

      2. Set the text for that new label to be the link to your stylesheet e.g.

      <LINK href="/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/sap_standard/ur/ur_ie6.css" 
      type=text/css rel=stylesheet>

      It has been a while since I have needed to do this, but it is better then setting it directly into the XSL manually like I think you have done.

      BRgds,

      Simon

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.