
What are div::before and div::after? How do we use them?
9 November, 2022
0
0
0
Contributors
If you want to add some extra content before or after a div, you can use the div::before and div::after pseudo-elements.
::before & ::after is a pseudo-element that allows us to add new content that is located before/after the element we created in our html document by simply going through css only.
Here is the explanation of how we use them 👇