Home › Forums › CSS › CSS Grids – style grid cells independently for a post feed › Reply To: CSS Grids – style grid cells independently for a post feed
February 11, 2019 at 10:59 am
#282691
Participant
Thanks @Paulie_D, this would normally work, but becuase I am trying to style a post feed module, I only have one class to work with (I can only assign one class), and the elements are childs of that class. For example this code makes the first column 50%, but it repeats on the next row.
.bloggrid-no-excerpts-news-test .column.size-1of3:nth-child(1) { width: 47.667% !important; }
I have tried lots of different nth-child formulas but I can’t break out of the child parent relationship… Do you think a combination of both might work?
Thanks