border-top-color

  • Revision slug: CSS/border-top-color
  • Revision title: border-top-color
  • Revision id: 20720
  • Created:
  • Creator: Jürgen Jeka
  • Is current revision? No
  • Comment 303 words added, 6 words removed; page display name changed to 'border-top-color'

Revision Content

{{ CSSRef() }}

Summary

The border-top-color CSS property sets the color of the bottom border of an element.

  • {{ Xref_cssinitial() }}: {{ Cssxref("color") }} property
  • Applies to: all elements
  • {{ Xref_cssinherited() }}: no
  • Percentages: N/A
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}: when taken from the 'color' property, the computed value of 'color'; otherwise, as specified

Syntax

border-top-color:  <color> | transparent | inherit

Values

<color>
See {{ Xref_csscolorvalue() }} values for the various possible keywords and numerical notations.
transparent
The element has no color of its own, instead showing the color of the element behind it.

Related properties

{{ Cssxref("border-color") }}, {{ Cssxref("border-right-color") }}, {{ Cssxref("border-bottom-color") }}, {{ Cssxref("border-left-color") }}

Examples

{{ CSSRefExampleLink("border") }}

pre {
	border: ridge 1em gold;
        border-top-color: red;
}

Specifications

Browser Compatibility

Browser Lowest Version
Internet Explorer 4.0
Firefox (Gecko) 1.0 (1.0)
Opera 3.5
Safari (WebKit) 1.0 (85)

See Also

{{ Cssxref("border") }}, {{ Cssxref("border-top") }},{{ Cssxref("border-color") }}, {{ Cssxref("border-right-color") }}, {{ Cssxref("border-bottom-color") }}, {{ Cssxref("border-left-color") }}

{{ languages( { "fr": "fr/CSS/border-top-color", "pl": "pl/CSS/border-top-color" } ) }}

Revision Source

<p>{{ CSSRef() }}</p>
<h3>Summary</h3>
<p>The<code> border-top-color </code>CSS property sets the color of the bottom border of an element.</p>
<ul> <li>{{ Xref_cssinitial() }}: {{ Cssxref("color") }} property</li> <li>Applies to: all elements</li> <li>{{ Xref_cssinherited() }}: no</li> <li>Percentages: N/A</li> <li>Media: {{ Xref_cssvisual() }}</li> <li>{{ Xref_csscomputed() }}: when taken from the 'color' property, the computed value of 'color'; otherwise, as specified</li>
</ul>
<h3>Syntax</h3>
<pre>border-top-color:  &lt;color&gt; | transparent | inherit</pre>
<h3>Values</h3>
<dl><dt>&lt;color&gt;</dt><dd>See {{ Xref_csscolorvalue() }} values for the various possible keywords and numerical notations.</dd><dt>transparent</dt><dd> The element has no color of its own, instead showing the color of the element behind it. </dd></dl>
<h3>Related properties</h3>
<p>{{ Cssxref("border-color") }}, {{ Cssxref("border-right-color") }}, {{ Cssxref("border-bottom-color") }}, {{ Cssxref("border-left-color") }}</p>
<h3>Examples</h3>
<p>{{ CSSRefExampleLink("border") }}</p>
<pre style="border-style: ridge; border-color: red gold gold; border-width: 1em;">pre {
	border: ridge 1em gold;
        border-top-color: red;
}</pre>
<h3>Specifications</h3>
<ul> <li><a class="external" href="http://www.w3.org/TR/CSS21/box.html#border-color-properties" title="http://www.w3.org/TR/CSS21/box.html#border-color-properties">CSS 2.1 Box #border-color</a></li>
</ul>
<h3>Browser Compatibility</h3>
<table class="standard-table"> <tbody> <tr> <th>Browser</th> <th>Lowest Version</th> </tr> <tr> <td>Internet Explorer</td> <td>4.0</td> </tr> <tr> <td>Firefox (Gecko)</td> <td>1.0 (1.0)</td> </tr> <tr> <td>Opera</td> <td>3.5</td> </tr> <tr> <td>Safari (WebKit)</td> <td>1.0 (85)</td> </tr> </tbody>
</table>
<h3>See Also</h3>
<p>{{ Cssxref("border") }}, {{ Cssxref("border-top") }},{{ Cssxref("border-color") }}, {{ Cssxref("border-right-color") }}, {{ Cssxref("border-bottom-color") }}, {{ Cssxref("border-left-color") }}</p>
<p>{{ languages( { "fr": "fr/CSS/border-top-color", "pl": "pl/CSS/border-top-color" } ) }}</p>
Revert to this revision