StijlbijschriftSide Property _
Voorbeeld
Verplaats het tabelbijschrift naar de onderkant van de tabel:
document.getElementById("myCap").style.captionSide = "bottom";
Definitie en gebruik
Met de eigenschap captionSide wordt de positie van het tabelbijschrift ingesteld of geretourneerd.
Browserondersteuning
Property | |||||
---|---|---|---|---|---|
captionSide | Yes | 9.0 | Yes | Yes | Yes |
Syntaxis
Retourneer de eigenschap captionSide:
object.style.captionSide
Stel de eigenschap captionSide in:
object.style.captionSide = "top|bottom|initial|inherit"
Eigendomswaarden
Value | Description |
---|---|
top | Default. Positions the table caption above the table |
bottom | Positions the table caption below the table |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Technische details
Standaardwaarde: | bovenkant |
---|---|
Winstwaarde: | Een tekenreeks, die de positie van het tabelbijschrift vertegenwoordigt |
CSS-versie | CSS2 |
Meer voorbeelden
Voorbeeld
Retourneer het tabelbijschrift:
alert(document.getElementById("myCap").style.captionSide);
Gerelateerde pagina's
CSS-zelfstudie: CSS-tabel
CSS -referentie: eigenschap bijschrift
❮ Stijlobject