Answer the question
In order to leave comments, you need to log in
How to write a text replacement in the .pp2 selector using css?
:after and before are not suitable because they do not remove, but complement the text.
allowable
<div>
bal bla bla
</div>
Answer the question
In order to leave comments, you need to log in
What if we initially make the div empty, and change the content for :after
.pp2::after{
content: "bal bla bla";
}
.pp2:hover .pp2::after{
content: "hello";
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question