Max Lindner
Max Lindner

Reputation: 211

how can I format the text size in a pseudo class ::after

I want to format the size of the text inside of a ::after pseudo element.

div{
  width: 200px;
  height: 200px;
  background-color: tomato;
}

#Seite1::after,
.DivTableRotated::after {
    content: "Die Prüfergebnisse beziehen sich ausschließlich auf die Prüfgegenstände. Die auszugsweise Vervielfältigung des Berichts ist nicht zulässig.";
}
<div id="Seite1"></div>

Upvotes: -1

Views: 419

Answers (1)

Jovana
Jovana

Reputation: 608

You can style it just as any other element. Below is provided simple example. If there is something more specific you want to change, please comment or update your post.

div{
  width: 200px;
  height: 200px;
  background-color: tomato;
}

#Seite1::after,
.DivTableRotated::after {
    content: "Die Prüfergebnisse beziehen sich ausschließlich auf die Prüfgegenstände. Die auszugsweise Vervielfältigung des Berichts ist nicht zulässig.";
    font-size: 12px;
    font-family: sans-serif;
    color: green;
}
<div id="Seite1"></div>

Upvotes: 0

Related Questions