Click here to Skip to main content
16,008,469 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So when do we use divs before and after classes and when we don't? Thank you..

What I have tried:

So when do we use divs before and after classes and when we don't? Thank you..
Posted
Updated 6-Jul-20 4:32am
v2

1 solution

Before and after selectors in CSS are used when you want to specifically reference an item before or after another particular item. It all depends on your design. w3Schools has a good article explaining various examples of when you might want to use them.

CSS Pseudo-elements[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900