Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#282691
Christian Thorne
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