#css-grid

[ follow ]
fromCSS-Tricks
3 days ago

Masonry Layout is Now grid-lanes | CSS-Tricks

In that same GitHub thread, you'll read that Tab Atkins-Bittner shared a "hacky" way to go about it with CSS Grid. You can have Grid do Masonry if you know the heights of the items ahead of time. It's a bit hacky, but you set the grid container to grid: auto-flow dense 1px / <column widths here>;, then set each item to grid-row: span <pixel height as integer>; (for example, if the item is 50px tall, use grid-row: span 50;).
Web development
#subgrid
from9elements
1 month ago
Web development

Building a multi stage timetable with modern CSS using grid, subgrid, round(), and mod(). - 9elements

from9elements
1 month ago
Web development

Building a multi stage timetable with modern CSS using grid, subgrid, round(), and mod(). - 9elements

fromWebKit
1 month ago

Grid: how grid-template-areas offer a visual solution for your code

Using grid lines is a flexible and powerful way to place your elements on a grid, but, when looking at the code, it might be a bit hard to visualize. So Grid gives you another way to place your elements that might be easier to see called grid areas. There's a bit more upfront work involved, but the pay off might be worth it.
Web development
React
fromThisweekinreact
1 month ago

This Week In React #259: State of React, Promise subclasses, Next.js, RSC, JSX Tools, React Grab, Base UI, Waku, StyleX | Yoga CSS Grid, Radon, Brownfield, Detox, Bootsplash | TC39, Browserslist, Linters, Prisma | This Week In React

Upcoming CSS Grid support for Yoga and React Native appears as a draft PR; TC39 proposals advance and the State of React 2025 survey has opened.
#css
Web development
fromCSS-Tricks
1 month ago

Pure CSS Tabs With Details, Grid, and Subgrid | CSS-Tricks

Accessible CSS-only tab interfaces can be implemented using <details> elements combined with CSS Grid and Subgrid for layout and panel control.
Web design
fromWebKit
2 months ago

CSS Grid: A helpful mental model and the power of grid lines

Use a container-first, spreadsheet-like mental model for CSS Grid: declare display: grid, design columns and rows up front, then place content into that structure.
#figma
#web-design
[ Load more ]