29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 5-38 Page Designer for Template editor<br />

5. Change to the Design view by clicking the Design tab at the bottom of the<br />

editor.<br />

6. Click the data cell to the right of the default company logo and type in Tom,<br />

Dick & Harry’s RVs....<br />

7. The default text color is black, which is difficult to see against the blue<br />

background. To address this, we will create a new Cascading Style Sheet<br />

(CSS) class and apply it to the text.<br />

Highlight the Tom, Dick & Harry’s RVs... text and right-click.<br />

8. From the context menu, select Style -> Add Style Rule.... The Set Selector<br />

of New Style dialog opens.<br />

Important: Using this method adds the style to the page. In this example, it is<br />

fine because we are working with a template and all changes made in the<br />

template will be reflected in any page that is referencing the template. If you<br />

are not using a template, the CSS class being created should first be added to<br />

a CSS file and then referenced in the page. For more information on using<br />

CSS, please see 5.1.9, “Working with style sheets” on page 120.<br />

9. Select the Class radio button and enter .page-header as the Class name.<br />

Chapter 5. Working with HTML 137

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!