Toward the bottom of the home page you’ll see 4 images that are side by side and that are entitled Test Post #1 - Test Post #2.
Under those posts, you see 4 featured pages entitled “About Amore, Typography, About Amore, Typography.” Also, you’ll see 4 Text Widgets. For some reason that I can’t figure out, this code isn’t working to make them behave like the 4 images that are above them:
You may have chosen :nth-of-type() because you believe that it keys on the classname. Unfortunately, that is a common misconception for both :nth-child() and :nth-of-type(). It keys on the tag associated with the first appearance of the classname, then counts “like” tags from the beginning of the container. It doesn’t matter where in the lineup that first classname appears. When a counted tag is reached, the pseudoclass checks to see if the classname is present and if it is, the new styles are applied; if no classname is present, no new styles are applied.
Thank you for your help, ronpat, but most of all, thank you for this. I didn’t understand why it wasn’t working, but now I do. This is going to be a premade WordPress theme, so I think I can’t include the featured pages and text widgets in the CSS. I need for this to be easy for non-techies to use, so I think I’ll just stick with the featured posts. But now I understand how it works, so thanks again!!