CSS and Reusability

No matter how reusable an object is, it won't be reused if it can't be adapted to fit to a variety of page designs. Unlike the DirectoryItems class, which does its work on the server, the navigator is client-side HTML—it is a series of enabled or disabled hyperlinks. It's important to control the page navigator's appearance, because it's a component of a web page. Figure 8-1 shows that page navigator again.

Figure 8-1. The page navigator

Recall that in order to control the navigator's appearance, you wrapped it in a div tag and set the class attribute of the div tag to navigator. One way to display this component is to ...

Get Object-Oriented PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.