Michael Gunner

Michael Gunner

© 2015 Michael Gunner. All rights reserved.

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.


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">