223015c: farben-overflow gefixt (intro gekürzt, code kompakt), klausurfolien regeneriert
This commit is contained in:
@@ -2068,22 +2068,19 @@ Best Practice: Setzt das global für alle Elemente.
|
||||
|
||||

|
||||
|
||||
CSS kennt fünf Notationen für Farben: **Keyword**, **Hex**, **RGB** (Red Green Blue), **RGBA** (RGB + Alpha) und **HSL** (Hue, Saturation, Lightness).
|
||||
CSS kennt fünf Farb-Notationen: **Keyword**, **Hex**, **RGB**, **RGBA** und **HSL**.
|
||||
|
||||
```css
|
||||
/* Keyword */
|
||||
color: red;
|
||||
color: rebeccapurple;
|
||||
|
||||
/* Hex */
|
||||
color: #FF0000;
|
||||
color: #F00;
|
||||
|
||||
/* RGB / RGBA */
|
||||
/* RGB = Red Green Blue, RGBA mit Alpha */
|
||||
color: rgb(255, 0, 0);
|
||||
color: rgba(255, 0, 0, 0.5);
|
||||
|
||||
/* HSL */
|
||||
/* HSL = Hue, Saturation, Lightness */
|
||||
color: hsl(0, 100%, 50%);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user