CSS :after pseudo-element

CSSWeb DevelopmentFront End Technology

Use this element to insert some content after an element. The following example demonstrates how to use the :after element to add some content after an element.

Example

Live Demo

<html>
   <head>
      <style>
         p:after
         {
            content: url(/images/bullet.gif)
         }
      </style>
   </head>
   <body>
      <p> This line will be succeeded by a bullet.</p>
      <p> This line will be succeeded by a bullet.</p>
      <p> This line will be succeeded by a bullet.</p>
   </body>
</html>
raja
Updated on 29-Jun-2020 07:19:04

Advertisements