BESTE WEBSITE FÜR WEBENTWICKLER
HTML-Farben. Lektionen für Anfänger

Ua En Es Fr

Das currentcolor-Schlüsselwort


Das currentcolor-Schlüsselwort

Das Schlüsselwort currentcolor bezieht sich auf den Wert der color-Eigenschaft eines Elements.

Beispiel

Die Rahmenfarbe des folgenden Elements <div> ist blau, da die Textfarbe des Elements <div> blau ist:

#myDIV {
  color: blue; /* Blaue Textfarbe */
  border: 10px solid currentcolor; /* Blaue Rahmenfarbe */
}
Try it Yourself »