Can you elaborate on that? As it stands, I don’t understand the question.
No. CSS is not about “time”, it’s about “selectors”. You can do this:
h1 {
font: Helvetica;
}
h1::before {
content: counter(h1) " "
counter-increment: h1;
}
h1 {
color: red;
}
or this
h1 {
font: Helvetica;
color: red;
&::before {
content: counter(h1) " ";
counter-increment: h1;
}
}
In both cases, you’ll have h1
elements in red Helvetica with the current h1
counter prepended.
This is only a rough sketch. CSS is more complicated than this: It’s about “specificity” and “order”, too. So, selectors coming later in the CSS override earlier ones with the same specificity, while those with higher specificity override those with a lower one, regardless of their position in the CSS. And another important concept is the “cascade”: Child elements inherit properties of their parents.
So, if you define h1
to be Helvetica red, h1::before
will be displayed in Helvetica red as well – unless you specifically define other values for that selector.
Since CSS is not really on-topic here, I suggest discussing more details in PMs.