My last problem before publishing the site

I changed from codes :before to :after
This solved the problem.
Is this the definitive solution?