Home » Tip Bank » Web Development » CSS
  • Comment on this Article
Dec 20, 2018
  • facebook
  • twitter
  • google+
  • in
  • Email

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Watch

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";
}
Srinath MS
 
Submit a Tip
Browse "Web Development" Tips
Browse All Tips
googlecode.com
w3schools.com