SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 453 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


There??™s one exception to the preceding rule: tables. Netscape browsers (through version 4.75)
treat tables differently than the rest of the HTML when it comes to style sheets. To
change the font of a table, you specify something like the following:
td {
font-family: Verdana, Arial, Helvetica, sans-serif;
}
Because every cell in a table uses the tag, this style sheet declaration affects the entire table.
Thankfully, the number of users still running Netscape 4.x has dwindled to the point where many Web developers
don??™t worry about it much.
Cascading characteristics
The term cascading describes the capability of a local style to override a general style. Think of a stream
flowing down a mountain; each ledge encountered by the stream has the potential to change its direction.
The last ledge determines the final direction of the stream. In the same manner, one CSS rule applying generally
to a block of text can be overridden by another rule applied to a more specific part of the same text.
For example, you??™ve defined, using style sheets, all normal paragraphs??”

tags??”as a particular font in a
standard color, but you mark one section of the text using a little-used tag such as . If you make a CSS
rule altering both the font and color of the tag, the section takes on the characteristics of that rule.


Pages:
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465