What are div::before and div::after? How do we use them ?
Do you still have questions about the pseudo-elements div::before and div::after? If so, don't worry; I didn't understand it either when I was learning CSS or when I saw coding tweets where many developers showed tutorials on how to make this and tha...
dir-blogs.hashnode.dev4 min read
Oye Ibrahim
Interesting read, thanks for sharing. So from what I understand here is that the ::before add content before the text within the div while ::after add content after the text . eg
<div> ::before Hello! ::after </div>