Working with the Border Properties


The properties in the border properties group have overlapping functionality to some extent. Hence, the order in which the rules are specified is important. For example, in this example,

 BLOCKQUOTE {   border-color: red;   border-left: double;   color: black }

the border's color will be red, except for the left border (border-left), which will be black. This is because the border-left property sets the width, style, and color at one time on the left border. Because the color is not explicitly set in that property, the value of the color property is automatically picked up; in this case, black.



Cascading Style Sheets(c) Designing for the Web
Cascading Style Sheets: Designing for the Web (3rd Edition)
ISBN: 0321193121
EAN: 2147483647
Year: 2003
Pages: 215

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net