Mobile app version of vmapp.org
Login or Join
Shelton105

: Explain me some CSS Newbie to CSS. I don't get why :before and :after are used. Can I get some easy explanation,please?

@Shelton105

Posted in: #Css #Css3

Newbie to CSS. I don't get why :before and :after are used.
Can I get some easy explanation,please?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelton105

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

When we use before it means, this css will apply (virtually) before the default content in html element, and vice-versa for after but the catch is these are called pseudo selectors, which does not change the real DOM, i.e. the change would be visible but not real.

Refer this to learn more about it : css-tricks.com/almanac/selectors/a/after-and-before/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme