Why you should start using Psuedo Elements – now

Why are psuedo-elements so awesome? There are so many reasons, but for me it’s the fact you can use them to simulate just about anything that HTML can do – without the extra markup, or hacky code. Clearing floats is a great example:

Psuedo-elements also come in very handy when coding for WordPress. When we use WordPress, we’re not always in control of our mark-up, navigations and loops are great example of this. On this very website, I wanted a horizontal rule after each row of items on my homepage, and psuedo elements offered the easiest way to do this without having to hack about with my loop.

Neat.