Grid containers and selecting for CSS

Home Forums Lite Version Grid containers and selecting for CSS

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12104
    PhilB
    Guest

    Hello again,

    I’m enjoying playing with the masonry grid plugin of yours and I was wandering, is it possible to style the individual containers with a different background colour? I have a look to see what the selectors are in Chrome’s dev tools and noticed that its run by a class. so if I selected it then I imagine it would change the colour for all of the containers.

    Is there a way to select them individually. Or a way to offset them so every 1,3,6 post was in red for example, and then 2,4,7 would be orange?

    Many Thanks,

    Phil

    #12125
    Masonry Guy
    Keymaster

    Hi Phil B,

    Ya it can be done with odd even css selector. You can check this tutorial for more details http://www.w3schools.com/cssref/sel_nth-child.asp

    Thanks

    #12140
    PhilB
    Guest

    Thanks for that good sir i’ll give that a go now.

    Regards,

    Phil B

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Lite Version’ is closed to new topics and replies.