Topic: Grid containers and selecting for CSS | WP Masonry Layout

Grid containers and selecting for CSS

Home Forums Lite Version Grid containers and selecting for CSS

This topic contains 2 replies, has 2 voices, and was last updated by  PhilB 7 months, 3 weeks ago.

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

    PhilB

    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 Reply

    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 Reply

    PhilB

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

    Regards,

    Phil B

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Grid containers and selecting for CSS
Your information: