top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In CSS, What is use for ::after and ::before?

0 votes
381 views
In CSS, What is use for ::after and ::before?
posted Feb 23, 2018 by Sidharth Malhotra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

::after and ::before are Pseudo elements. It which allows you to insert content into a page from CSS

Example:

div::after {
  content: "hi";
}

div::before {
  content: "hi";
}
answer Feb 26, 2018 by Sandeep Bedi
Similar Questions
+2 votes

Am new to css.I know only basics in css. I wonder what is the use clear:both.Please give some sample code for what is the use for this.

...