Webflow Layout Techniques

Comparison Grid Layout

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
July 27, 2023
Updated
July 27, 2023
in lightbox

Do you have a CMS-sourced pricing table or product comparator where you need the rows to dynamically match height for an aligned display?

Like this-

Credit to Nicholas Ryan Howard for this illustration and starting the discussion thread.

Yes it's possible in Webflow, and there are two approaches.

CSS Approach

The CSS sub-grid feature is designed to allow a child grid to utilize its parent grid's layout rules, and is widely supported by modern browsers.

Demo
https://layout-demos.webflow.io/comparison-grid-layout

Cloneable
https://webflow.com/made-in-webflow/website/layout-demos

References

https://css-tricks.com/achieving-vertical-alignment-thanks-subgrid/

Here's a Codepen example of the row-height-matching;

https://codepen.io/memetican/pen/BagJbBq/b7dd2ba61a891323a8c7625f343abea1

JS Approach

Another approach is to have JS compare your two collection lists, and determine the ideal row heights exactly, row by row.

Jason Roach gives an excellent demo of this;

Example - https://equal-height-rows-with-dual-cms.webflow.io/

Cloneable - https://webflow.com/made-in-webflow/website/equal-height-rows-with-dual-cms

Comparison Notes

CSS approach;

  • + works in the designer
  • + requires no extra code
  • - requires you to know the row count in advance
  • - requires a small bit of "workaround" CSS to suppress the layout impact of the collection list div container elements.

Discussion;

https://www.facebook.com/groups/311973022648711?multi_permalinks=2000757460436917&hoisted_section_header_type=recently_seen

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.