• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Working with Style Sheets > Cascading and Inheritance

Cascading and Inheritance

As you have seen in this chapter, style sheets can be implemented in a number of ways, and can even work together to define the appearance or position of individual HTML elements, or all the elements on a page or pages. Before I describe applying style sheets in GoLive, you need to understand some of the rules that govern how style sheets work together and how they interact with HTML elements. A full discussion is beyond the scope of this book, but you can use these principles to plan your style sheets, especially if you plan to apply several style sheets to a single document or HTML element.

Since multiple style sheets and rules are applied to a single HTML element, and since styled elements are displayed in browsers with a variety of visual characteristics—text size, and typeface, for example—it's important for a Web designer to understand how CSS sorts out all the competing hierarchies. That's where the cascading in Cascading Style Sheets comes in. Cascading sets the relative precedence of one type of style sheet over another when several style sheets apply to the same HTML element. Cascading also tells the browser how to display styled content, based on the appearance precedence.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint