--- title: border-bottom-color slug: Web/CSS/border-bottom-color tags: - CSS - Dokumentacje translation_of: Web/CSS/border-bottom-color ---

{{ CSSRef() }}

Podsumowanie

border-bottom-color ustawia kolor dolnego obramowania elementu, poprzez wartość koloru lub słowo kluczowe transparent.

Składnia

border-bottom-color: color | transparent | inherit

Wartości

color 
Kolor może być zdefiniowany jako szestnastkowa wartość RGB, zwykła wartość RGB lub poprzez użycie jednego z predefiniowanych słów określających kolory.
transparent 
Element nie ma własnego koloru, zamiast tego pokazuje kolor elementu pod spodem.

Powiązane własności

Przykłady

Zobacz przykład

element {
	width: 300px;
        padding: 15px;
        border-bottom-size: 1px;
        border-bottom-style: solid;
        border-bottom-color: #000;
}

Notatki

Specifications

Specification Status Comment
{{SpecName('CSS3 Backgrounds', '#border-bottom-color', 'border-bottom-color')}} {{Spec2('CSS3 Backgrounds')}} No significant changes, though the transparent keyword, now included in {{cssxref("<color>")}} which has been extended, has been formally removed.
{{SpecName('CSS2.1', 'box.html#border-color-properties', 'border-bottom-color')}} {{Spec2('CSS2.1')}} Initial definition

Browser Compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 1.0 {{CompatGeckoDesktop("1.0")}}[1] 4 3.5 1.0 (85)
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 1.0 {{CompatGeckoMobile("1.0")}}[1] 6.5 11 1.0

[1] Gecko-based browsers like Firefox also support the non-standard {{Cssxref("-moz-border-bottom-colors")}} CSS property that sets the bottom border to multiple colors.

See also