Add Text After a Particular HTML Element Using CSS

Use the :after selector to add text after the element. Please see below for an example.

If you want to add text, such as ‘Click the email link at the bottom of the page for feedback,’ at the end of every div, you would simply add the following in the CSS.

div:after{ content: "Click the email link at the bottom of the page for feedback";}
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts