Changing the Portlet Body Color

11-12 Oracle Fusion Middleware Users Guide for Oracle Portal

f. Select a Font Style:

Plain Bold Italic Bold Italic g. Click Apply. The Preview section is refreshed to show your color and font selections. 7. To change the edges of the portlet header:

a. In the Style Element Properties section, choose Portlet Header Style.

b. Click a radio button to select an edge: Figure 11–5 Normal: Two Square Edges Figure 11–6 Rounded: Two Rounded Edges Figure 11–7 Rounded Left Edge Figure 11–8 Rounded Right Edge

c. Click Apply.

The Preview section is refreshed to show your selection. 8. Edit each of the portlet header style elements as desired. Click Apply after changing each element. 9. Click Close to save your changes and exit the Edit Style page.

11.5.3 Changing Portlet Heading and Text Colors and Fonts

Oracle Portal provides four levels of heading and text attributes for use in developing portlets. If you view the source of any Oracle Portal page, youll see that the portlets were written using Portlet Heading1 and Portlet Text1. For example, the Favorites portlet uses the Portlet Heading1 style element for favorite links. You can provide a distinctive look to your portal by working with the colors and fonts that are applied to portlet headings and text. Change the colors and fonts used with portlet headings and text by editing the style that is applied to the page on which the portlet is placed. Figure 11–9 shows the Favorites portlet with different Portlet Heading1 color settings. Working with Colors and Fonts 11-13 Figure 11–9 Favorites Portlet with Different Portlet Heading1 Color Settings For information about how to use these style elements in your own portlets, see the Portal Developer Kit page on the Oracle Technology Network OTN, http:www.oracle.comtechnologyproductsiasportalportlet_ development_10g1014.html . For information on Oracle Portal style classes, which you can use with your own developed portlets, see Section 11.12, Using Portal Style Element Classes in HTML Templates and CSSs . Use care when changing a style: the changes you make affect the appearance of all pages and sub-page, tab, and item regions that use the style. To change portlet heading and text colors and fonts:

1. Log in to Oracle Portal.

2. Click the Build tab to bring it forward.

3. From the Page Groups portlet Work In drop-down list, select the page group that

owns the style to be edited. By default, the Page Groups portlet is located on the Build tab of the Portal Builder page.

4. Under Styles in the Layout Appearance section, click the style to be edited.

This opens the Properties tab of the Edit Style page.

5. In the Style Element Type section, choose Portlets.

6. In the Style Element Properties section, choose Portlet Headingn or Portlet Textn,

where n is the desired level. You can also select the portlet heading or text style element by clicking it in the Preview section. For a list and description of style element properties relevant to portlets, see Section 11.3.3, Portlets .

7. Click a color in the palette, or enter a hexadecimal value in the Color field, for

example FFCC00. Clicking in the palette automatically populates the Color field with the color’s hexadecimal value.

8. Select a Font Decoration:

■ None for no decoration see the following Note ■ Plain for no decoration see the following Note ■ Underline for underlined text ■ Line-Through for lined-out text ■ Underline Linethrough for underlined text that is also lined out Tip: If the style is used by more than one page group, look in the Shared Objects page group.