Anatomy of a style sheet


show more Anatomy of a style sheet provides you with in-depth training on Web. Taught by Garrick Chow as part of the Dreamweaver CS3 Essential Training show less
please wait ...

Anatomy of a style sheet

Before we start working with CSS in {italic}Dreamweaver{plain}, there some important terms and definitions we need to take a look at so you'll be able to follow what I'm talking about in upcoming movies. In this movie I want to break down the anatomy of CSS rules. Now, the world rules is not being used as a verb, as in "CSS rules". Even though it's true that CSS does in fact rule. But, rules here refers to the style defined by CSS that you create. Rules are the very core of Cascading Style Sheets. Here's a basic example.

A CSS rule consists of two parts. You have the Selector and the Declaration block. In this example, H1, which is a Heading 1 tag, is the Selector. It selects the H1 element on the page, saying that this tag should be modified to follow the appearance defined in the Declaration block, which in this case says all Heading 1 elements on the page should be displayed in green. The Declaration block always appears inside those squiggly brackets ...

Anatomy of a style sheet
Video duration: 4m 9s 10h 21m Beginner

Viewers:

Anatomy of a style sheet provides you with in-depth training on Web. Taught by Garrick Chow as part of the Dreamweaver CS3 Essential Training

Subject:
Web
Software:
Dreamweaver
Author:
please wait ...