Portal style classes

 

+
Search Tips   |   Advanced Search


Overview

The CSS style sheets that are used for the portal page are located in the /themes directory. Portal aggregation looks up the correct copy of the style sheets based on the theme name, locale, and client that are indicated in the request. You can change the tag definitions and the class definitions in the CSS style sheets. However, verify you do not delete any style sheets or remove any style classes. Portlets require these style classes for JSP output.

 

Style classes for portlets

The style sheets that are used by WebSphere Portal contain classes that can be used by portlets to ensure visual consistency among portlets on the page. Using these classes ensures that no matter what theme has been selected, the portlet look and feel matches that of other portlets and the portal page.

Portlet developers can examine the file Styles.css in the...

was_root/installedApps/hostname/wps.ear/wps.war/themes/html/

...directory to determine which classes to invoke in your portlet output. The file includes comments explaining the use of each class. To find the portlet classes, look for the following comment in the style sheet.

/******************************************************************************/
/* Styles used in portlets                                                    */
/******************************************************************************/

Portlet helps use the style classes in HelpStyles.css . For most tags, using class="help" ensures that the portlet help renders consistently with helps for other portlets on the page.

 

See also

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.