Entering content frameFunction documentation Stylesheets Locate the document in its SAP Library structure

Use

Stylesheets and cascading stylesheets are extensions of HTML tags and are used to make adapting formatting in your BSP application to the design specifications of your application more easy and precise. You can also use stylesheets to specify formats and formatting, thereby unifying the design of individual BSPs.

Functions

A standard stylesheet is automatically inserted in the layout when the BSP is created.

<%@page language="abap"%>
<html>

  <head>
    <link rel="stylesheet" href="../../sap/public/bc/bsp/styles/sapbsp.css">
    <title> test </title>
  </head>

  <body class="bspBody1">

  </body>

</html>

The class attribute refers to the class information for the tag from the stylesheet (.css file) The path above specifies the location of the stylesheet in the MIME repository.

A .cSS file in the MIME repository is automatically cached in the Structure linkICM (as are all other objects in the MIME repository), which in turn can result in increased performance.

Note

If necessary, you can also use your own stylesheets with their own formats.

HTMLB

The BSP elements of extension HTMLB can also use different stylesheets, both standard stylesheets as well as portal server stylesheets, for example. In the following URL, specify:

sap-theme=<absolute path>

See also:

System-specific URL Parameters

Changing Stylesheets for HTMLB and XHTMLB

 

 

Leaving content frame