Comments on: Implicit Grids, Repeatable Layout Patterns, and Danglers https://css-tricks.com/implicit-grids-repeatable-layout-patterns-and-danglers/ Tips, Tricks, and Techniques on using Cascading Style Sheets. Tue, 02 Aug 2022 21:57:56 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Curtis Wilcox https://css-tricks.com/implicit-grids-repeatable-layout-patterns-and-danglers/#comment-1796597 Tue, 02 Aug 2022 21:57:56 +0000 https://css-tricks.com/?p=367158#comment-1796597 You don’t have to use Safari Technology Preview (TP), Safari has supported :has() since 15.4 in March. That means it works in all browsers on most iPhones & iPads (over 80% of devices are running iOS 15.4 or newer).

For this use, everything works in browsers that don’t support :has() the layout is merely not quite as nice.

]]>
By: Temani Afif https://css-tricks.com/implicit-grids-repeatable-layout-patterns-and-danglers/#comment-1796593 Tue, 02 Aug 2022 13:26:47 +0000 https://css-tricks.com/?p=367158#comment-1796593 We can do it with using :has() as well

the selector .grid div:last-of-type:nth-of-type(odd) can do the job

]]>