O'Reilly logo

Dreamweaver MX: The Missing Manual by David Sawyer McFarland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 doesn’t use the <b> tag when making text bold—see the box on page 77).

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required