Become an AI & ML Engineer with Cal Poly EPaCE — IBM-Certified Training
PowerBI Data Analyst - Create visualizations and dashboards from scratch
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Learn an advanced CSS technique for targeting specific rows in CSS Grid layouts that use auto-fit or auto-fill properties. Master the use of container queries and CSS selectors to precisely control styling for first rows, last rows, second rows only, or first two rows in responsive grid systems. Explore the requirements and setup needed for this technique to work effectively, including how to implement container queries for different row selections. Discover alternative approaches using newer CSS features that eliminate the need for container queries entirely. Practice with provided CodePen examples demonstrating each variation of the technique, and understand the underlying principles that make this advanced grid manipulation possible.
Syllabus
00:00 - Introduction
00:45 - Requirements for this to work
01:45 - Setting up the first container query
03:00 - Getting the first two rows
05:10 - Getting only the second row
07:00 - Selecting the last row
13:44 - Using new CSS features so we don’t need container queries
Taught by
Kevin Powell