Difference between revisions of "CSS GUIDE BORDER-TOP-COLOR"
(→See Also) |
|||
(One intermediate revision by the same user not shown) | |||
Line 45: | Line 45: | ||
== See Also == | == See Also == | ||
− | *border-top-style | + | *[http://zenit.senecac.on.ca/wiki/index.php/CSS_GUIDE_BORDER-TOP-STYLE border-top-style] |
− | *border-top-width | + | *[http://zenit.senecac.on.ca/wiki/index.php/CSS_GUIDE_BORDER-TOP-WIDTH border-top-width] |
Latest revision as of 18:17, 13 December 2006
Contents
Summary
This property is used to set the color of a given elements top border.
- Inherited: No
- Percentages: N/A
- Media: visual
Syntax
TARGET_ELEMENT{border-top-color: value;}
Legal Values
Values can be entered in 3 ways:
Method | Range | Example |
---|---|---|
Hexadecimal (preferred) | #000000 - #ffffff | #00ff00 is green |
Color name | W3Schools Natural Langauge Color Names | green |
RGB value | 0-255 | rgb(102,204,102) is green |
transparent - The border is transparent.
See usage examples section for more details.
Mozilla Recommended Values
Usage Examples
table{border-top-color: #ff3366;}
table{border-top-color: rgb(255,0,0);}
Notes
When using the transparent keyword as a value the border is transparent though it may still have width.