Search code examples
csseol

CSS end of line character


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?


Solution

  • Yes it is possible

    p:after{
        content:"_";
    }