O'Reilly logo

CSS & CSS3 by Robin Nixon

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

Images

Applying Declarations to IDs and Classes

Images

         To view the accompanying video for this lesson, please visit mhprofessional.com/nixoncss/.

In Lesson 1 I very briefly introduced the concept of IDs and classes. Now let’s look in detail at how you work with these mainstays of CSS design.

To recap, CSS supports the ability to style individual elements either by placing CSS inline with the element by supplying the declarations as a string value to an element’s style attribute or, perhaps more simply (and certainly more in the spirit of separating ...

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