Styling more than two WordPress Blog Posts differently

There are a few ways to style alternating blog posts and a few ways to style more than two. This example does a simple count and gives 5 different styles to 5 different post containers that you can style. In this setup the only difference is styling the hover of the containing div to be different colors.

4-style-hover-div

The Markup:

And the css:

Leave a Reply

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

79 − = 77