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

Chapter 13. Cascading and Inheritance > Example 3: Accommodating User Styles

Example 3: Accommodating User Styles

In the previous example, we showed how the cascading mechanism gives designer style sheets more weight than user style sheets. Some people consider this unfair, so in CSS, we include two alternatives for letting the user’s rules prevail:

  • The user can turn off style sheets. The CSS specification recommends that browsers allow the user to selectively turn style sheets on and off. Typically, the opportunity to do this would be offered via a pull-down menu that displays all the available style sheets, thereby allowing the user to pick the one desired.

  • Users can mark rules in their style sheets as “important,” thus overriding the designer’s rule for the same element.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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