• CSS Rule to target ALL nth-child(X)

    Home » Forums » Developers, developers, developers » Web design and development » CSS Rule to target ALL nth-child(X)

    Author
    Topic
    #2601578

    I have several nested DIVs. Im trying to write a CSS rule that will target ANY (all) div marked in bold below:

    div.e41:nth-child(2) > div:nth-child(1) > div:nth-child(1) > div:nth-child(1) > span:nth-child(3) > span:nth-child(1) > span:nth-child(1)

    div.e41:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div:nth-child(1) > span:nth-child(3) > span:nth-child(1) > span:nth-child(1)

    div.e41:nth-child(2) > div:nth-child(1) > div:nth-child(etc) > div:nth-child(1) > span:nth-child(3) > span:nth-child(1) > span:nth-child(1)

    Viewing 0 reply threads
    Author
    Replies
    • #2601756

      got it working with nth-child(n+0)

    Viewing 0 reply threads
    Reply To: CSS Rule to target ALL nth-child(X)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: