Color every second word in tag cloud in CSS

Home Forums General Questions Color every second word in tag cloud in CSS

Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #105245 Reply | Resolve

    frederiknygaard

    Hi.

    Is it possible to color every other word in a tag cloud, for example by using the ntd_child or ntd_type selector?

    Best, Frederik

    #128958 Reply

    Michael Fields

    You can definitely change every other tag name this way. Please try the following code:

    aside[role="complementary"] .wp_widget_tag_cloud a:nth-child(even) {
    color: green;
    }

    #128969 Reply

    frederiknygaard

    Fantastic, works perfect.

    Thank you Michael.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.


<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre> <em> <strong> <del datetime=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">