|
This article is part of the Joy Gems series which originally appeared in The Joy Gems Newsletter and/or The Home Page Helper Network on ryze.com, a business networking community. |
Download this article as an Adobe Acrobat file.
|
![]()
So what's with The Cascade?
A cascade is a succession of stages, processes, operations or units.
The CSS cascade is made up of a succession of style sheets each influencing how a web page looks. The succession deals with the sorting and prioritizing of the rules that define the style of a page.
CSS is about the conflicts between style rules, and how they are settled. Always keep that in mind and you'll be well on your way towards effectively using its awesome power.
If you think about how you can cascade layers, as in the graphic on the right, you'll get a visual picture of how CSS works. User agents (web browsers , if you prefer) support three style sheet types. The three types of style sheets are Browser Style Sheet, User Style Sheet and Designer Style Sheet.
(To make things a tad more interesting, the Cascade model is also used to prioritize the style rules that you, as designer/web author, create in the Designer Style Sheet. In the Designer Style Sheet, there are 3 different locations for style rules, each having a different priority. I'll explain more later when we get to the section on Designer Style Sheets.)
Are you still there? That was the hard part. All this will make more sense as you start to learn and work with CSS.
Here's the big point: All 3 style sheets work together to influence, in one degree or another, how every web page looks.
Just how do the 3 style sheets do that? Stay tuned. Part 2 is only two weeks away!!


If
you like what you're reading then sign up for The Joy Gems Newsletter,
delivered by email every other Thursday.