O'Reilly logo

Learning Modernizr by Adam Watson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Frame 2 – multiple backgrounds, text shadow, and RGBA color

In this section we'll be doing the following:

  • Creating multiple backgrounds to change the color
  • Adding a text shadow to the page for headings
  • Using RGBA color for alpha

Now we're going to leave the first frame alone and head into the open waters over to frame two. In frame two, we will be detecting and then using multiple backgrounds. The original background is ok, but it would be nice to saturate it with some color. Adding color is actually quite simple with multiple background support. We'll also be taking advantage of support for RGBA, which is identical to traditional RGB color with one very key addition—alpha. Alpha for anybody familiar with things such as Photoshop is more or less the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required