• Resolved inula

    (@janetb)


    Hi,
    I wouldlike to give each of the customfields a different class.

    customfield_display=”date1,date2″ customfield_display_separately=”yes” customfield_class=”date”

    This is what I do now. Date1 and date2 both have class=”date”.
    I tried customfield_class=”date1,date2″ ?? but that doesn’t work.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter inula

    (@janetb)

    No one?
    I wouldlike to give each of the customfields a different class….

    Thread Starter inula

    (@janetb)

    Found it:

    /*
    * Select all customfields of the list, including the first one,
    * and give them a color.
    */

    li > .customfields {
        color: red;
    }

    … then “undo” the styles for elements with the class that come after the first one, using the general sibling combinator ~ in an overriding rule:

    /*
    * Select all but the first .customclass child of the list element of lcp,
    * and remove the color from the previous rule.
    */

    li > .customfields ~ .customfields {
        color:#09458F;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘customfields class’ is closed to new replies.