Here is the page I am influencing: http://www.careerchoiceswithlaura.com/blog/
Checking the items will show that I configured one class "blog-post" and added it to each entry on the page. Then I use a simple algorithm to apply the class with an “even number” or “odd number”, as well as for the corresponding entries, so that I can stagger the color effects and make the page more readable.
The problem is that when I apply the rules using the following line in the CSS file:
.blog-post .odd-numbered { background: #ddd; }
.. it does not affect elements with blogs and odd numbers; in fact, the rule does not affect the page.
Can someone explain why and which class selectors I should use to influence the specified elements?
I researched online and found this article in W3 very useful (and it seems that the rule should work if you look at / blog /: 279 on the page I mentioned above), but even with the rule there it seems nothing to the elements I'm trying to customize.
source share