Okay, what I want is this: When the <p> tag ends with </p>, I want to add a character at the end of the line. For example
<p>Something and more!</p>
Should look like
Something and more!_
Where the '_' (underscore) is the added character.
Is this possible with CSS?
Is it also possible at the end of a line?
Yes it is possible
p:after{
content:"_";
}
If I've understood your question right, then I think the following works as you require:
p:after {
content: '_';
}
JS Fiddle demo.
Which seems compatible even with IE 8 and above.
You can use the pseudo-class :after
:
p:after { content: '_'; }
It’s not possible for each line though, as CSS practically does not know about “lines”.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With