entropie: Verständnisproblem

Beitrag lesen

Guten Abend,

namd

ich habe ein ganz triviales Verständnisproblem mit der CSS-Angabe

body, p a {
    font: normal 100.01% Helvetica, Arial, sans-serif;
    color: black; background-color: #ffffe0;
  }

Wenn ich es richtig verstanden habe, gelten obige Angaben innerhalb des body-Blocks    u n d     für ein a-tag innerhalb eines p-Tags.
Ist dies noch korrekt?

Korrekt. Allerdings nur für das "a" in einem "p" im body.

Jetzt die Frage:
Wird die Eigenschaft nicht vererbt, d.h. wenn es innerhalb des body-Blocks gilt, dann auch für die darin definierten p-tags bzw. a-tags?

nein, das wäre
body p a {
  font: normal 100.01% Helvetica, Arial, sans-serif;
  color: black; background-color: #ffffe0;
}

Mfg entropie

--
Whenever people agree with me I always feel I must be wrong.
  -- Oscar Wilde