Webflow Layout Techniques

Checkerboard Grid Styling

Overview
Responsive Layout Techniques
102
Element Layouts
Aspect Ratio
201
Responsive Image Annotations
6:50
202
Collection List Alternating Item Layouts
4:32
601
Collection Page & Collection List Layouts
Collection List Card Layouts
4:32
601
Creating Variable Layout Options, per Collection Item
11:46
602
Random List Items on Every Page Refresh
10:00
603
Variable Collection Item Sizes in a Grid Layout
603
Limit Collection List Items by Breakpoint
10:00
604
Hide Collection List on Empty, or Item Qty
605
Responsive Pagination
605
Masonry Grid Layouts
607
Glossary w/ Letter Groupings
612
Comparison Grid Layout
612
CMS Style Multiref-Matched Items
11:00
614
Master-Detail Layouts
Master-Detail Layouts
710
CMS-Driven Expando
19:42
714
Special Layouts
Creating Leader Lines
5:54
821
Photo Gallery Layouts
821
Column Layouts
822
Text Layouts
823
Checkerboard Grid Styling
824
Tetris Grid Layouts
12:00
826
Advanced Techniques
Breakpoints
901
No items found.
Published
April 16, 2024
Updated
April 16, 2024
in lightbox

Checkerboard styling can add a nice looking effect to a CSS grid.

But how do you maintain that styling responsively as the number of grid columns changes? How do you ensure that the solution works with CSS grids, where you cannot individually style your alternating cells?

Here's a solution using CSS nth-child pseudoselector.

Inspired by Daniel Nicholls' post;
https://www.facebook.com/groups/webflowdesigners/posts/1918186122027385/

Demonstration;
https://codepen.io/memetican/live/vYMzgwW/32a76a82dc6d8ff69b2089a487fac625

Codepen;
https://codepen.io/memetican/pen/vYMzgwW/32a76a82dc6d8ff69b2089a487fac625

Videos
No items found.
Table of Contents
Comments
Did we just make your life better?
Passion drives our long hours and late nights supporting the Webflow community. Click the button to show your love.