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

6. Cascading Style Sheets > 6.5. More About Styles

More About Styles

As you begin to pile styles onto your pages, you may start to notice some peculiar behaviors as styles start to interact. The rules governing these interactions can be complex, but boil down to two main concepts: inheritance and cascading.

Inheritance

Imagine that you’ve created a new style by redefining the paragraph tag (<p>). This style has a font type of Arial, is red, and is 24 pixels tall. Then you select a single word in a paragraph and apply bold formatting to it. When you use the Property inspector’s bold button to do this, Dreamweaver quietly wraps that word in a pair of <strong> HTML tags (Dreamweaver MX 2004 doesn’t use the <b> tag when making text bold—see Section 3.3.2).


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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