CSS border-bottom eigenschap
Voorbeeld
Stel de stijl van de onderrand in voor verschillende elementen:
h1 {
border-bottom: 5px solid red;
}
h2 {
border-bottom: 4px dotted blue;
}
div {
border-bottom: double;
}
Definitie en gebruik
De border-bottom
eigenschap is een steno-eigenschap voor (in de volgende volgorde):
Als border-bottom-color wordt weggelaten, is de toegepaste kleur de kleur van de tekst.
Standaardwaarde: | medium geen kleur |
---|---|
geërfd: | Nee |
Animeerbaar: | ja, zie individuele eigenschappen . Lees over animeren |
Versie: | CSS1 |
JavaScript-syntaxis: | object .style.borderBottom="15px gestippeld lichtblauw" |
Browserondersteuning
De getallen in de tabel geven de eerste browserversie aan die de eigenschap volledig ondersteunt.
Property | |||||
---|---|---|---|---|---|
border-bottom | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
CSS-syntaxis
border-bottom: border-width border-style border-color|initial|inherit;
Eigendomswaarden
Value | Description |
---|---|
border-bottom-width | Required. Specifies the width of the bottom border. Default value is "medium" |
border-bottom-style | Required. Specifies the style of the bottom border. Default value is "none" |
border-bottom-color | Optional. Specifies the color of the bottom border. Default value is the color of the text |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Gerelateerde pagina's
CSS-zelfstudie: CSS-rand
HTML DOM-referentie: borderBottom-eigenschap