Applying Declarations to IDs and Classes
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 ...
Get CSS & CSS3: 20 Lessons to Successful Web Development 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.