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

Chapter 33. Styling for HTML Elements > The Order of Precedence in Styling, fro...

The Order of Precedence in Styling, from Style Sheets

There are five ways for a style sheet to impact a document. The first is the style attribute, which contains a miniature style sheet every time you use it. This always takes precedent over any other way.

Note

The exception to this rule is with the runtimeStyle property of an element in Internet Explorer 5+. Setting values through this overrides even the style attribute.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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