Mouseovers and Stylesheets

This section assumes you either know something about stylesheets or can learn about them incredibly fast. Put your thinking helmet on.

Many people are starting to build their Web pages using stylesheets and to position elements by placing them in layers. Generally, this is a great way to build a Web site, and it's decreased the amount of time it takes me to build one. Unfortunately, it can throw a wrench into any mouseovers you have.

As an example, let's look at a small project I did recently (actually, yesterday). I've removed the name of the company and altered the text so you don't know for whom I did it (they're a little secretive). We'll only look at a single page—that's all we need. Figure 1-7 shows what this ...

Get Advanced JavaScript™: Insights and Innovative Techniques 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.