CHAPTER 3

image

Selectors and Style Rules

image Note   CSS is no more than a collection of style rules, and each style rule is made up of a selector and a definition. Don’t let it get more complicated than that.

A style rule’s selector determines what it affects, and the definition determines how it is affected.

So, just as it is the entire job of HTML to define the document’s structure, it is the entire job of CSS to lay out and style that structure to appear as it should and where it should.

With the combination of the document object model (DOM) of HTML ...

Get CSS for Windows 8 App 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.