I included a CSS rule that you can use instead.
Ich habe eine CSS-Regel, die Sie stattdessen verwenden können.
A CSS rule is a set of properties associated with a selector.
Eine CSS-Regel ist ein Satz von Eigenschaften, verbunden mit einem Selektor.
The task of modifying a CSS rule by a script should be simple.
Die eigentlich simple Aufgabe, eine CSS-Regel per Skript zu verändern, besteht aus zwei Teilen.
You can remove it using a CSS rule.
Über eine CSS-Regel lässt sich das Rechteck entfernen.
You can add your own CSS rule for this element using the method described in the previous section.
Sie können mithilfe der im vorherigen Abschnitt beschriebenen Methode Ihre eigene CSS-Regel für dieses Element hinzufügen.
Creates a new, empty line at the end of the list to which you can add an available CSS rule.
Legt eine neue, leere Zeile am Ende der Liste an, in der Sie eine vorhandene CSS-Regel hinzufügen können.
If we prefer not to end the last declaration in a CSS rule with a semicolon, we should not do so.
Wenn wir bevorzugen, die letzte Deklaration einer CSS-Regel nicht mit einem Semikolon zu beenden, dann sollten wir das auch nicht tun.
When you update a CSS rule in one place, the formatting of all the elements that use the defined style are automatically updated to the new style.
Eine CSS-Regel braucht nur an einem einzigen Ort geändert zu werden, um die Formatierung aller Elemente, die den in ihr definierten Stil verwenden, automatisch zu aktualisieren.
You could try it right now by figuring out what the following CSS rule does
Versuchen Sie es gleich einmal, indem Sie versuchen herauszufinden, was die folgende CSS-Regel bewirkt
That would obviously be possible by defining a CSS rule for the h1 element like this
Das wäre natürlich möglich, indem wir eine CSS-Regel für das Element h1 definieren würden.
Understand the structure of a CSS rule: selector and declaration (property, value).
5.1.3 Struktur einer CSS-Regel verstehen: Selektor und Deklaration (Eigenschaft, Wert)
The custom modification "padding-left:0;" is now required; this is created as a CSS rule.
Nun wird die individuelle Anpassung padding-left:0; benötigt, die als CSS-Regel erstellt wird.
Which CSS rule takes effect is controlled by specificity (roughly, the complexity of the selector - e.g. div.foo {margin: 10px} is more specific than.foo {margin: 5px}).
Welche CSS-Regel aktiv ist, wird beeinflusst von der Spezifität (grob gesagt der Komplexität des Selektoren - beispielsweise ist div.foo {margin: 10px} spezifischer als.foo {margin: 5px}).