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

273 Views Asked by At

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>

1

There are 1 best solutions below

0
Jovana On

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>