CSS3 > Selectors

After selector in CSS3

How to insert the content after selected element(s) in CSS3?

By using After selector we can place the content after selected element(s).

        b::after {
            content: " - The Founder of";

        h3::after {
            color: green;
            content: "- The CEO of SNIT Funda Service LLP";

    <b>Sheo Narayan</b>
    <h3>S Narayan</h3>

In the above code snippet, style is applied to the <b> tag and <h3> tag.


 Views: 818 | Post Order: 8

Write for us