As for pseudo-elements :after
/:before
there are apparently two ways if I want to display image there:
- using
background-image:url(imgurl.png);
- using
content:url(imgurl.png);
Are both ways correct and valid? Why should I be using one way over another?
Apparently using the second method you cannot set the picture properties like size. But first method is generaly more taught on internet.
Ideas?