<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/fun-things-you-can-do-with-css-grid-besides-your-basic-layout-w56itcxw9" -->

---
title: Fun things you can do with CSS Grid besides your basic...
description: A collection of creative CSS Grid tricks beyond typical page layout, including building buttons with punch-out holes using pseudo elements as grid items,...
canonical: https://daily.dev/posts/fun-things-you-can-do-with-css-grid-besides-your-basic-layout-w56itcxw9
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Fun things you can do with CSS Grid besides your basic layout | daily.dev
og:description: A collection of creative CSS Grid tricks beyond typical page layout, including building buttons with punch-out holes using pseudo elements as grid items,...
og:url: https://daily.dev/posts/fun-things-you-can-do-with-css-grid-besides-your-basic-layout-w56itcxw9
og:image: https://api.daily.dev/og/posts/W56ITCxW9.png
og:image:alt: Fun things you can do with CSS Grid besides your basic layout
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Fun things you can do with CSS Grid besides your basic layout

**[utilitybend](https://daily.dev/sources/utilitybend)** · 6 min read · 0 upvotes · 0 comments

## Summary

A collection of creative CSS Grid tricks beyond typical page layout, including building buttons with punch-out holes using pseudo elements as grid items, styling titles with lines on either side, making lists flow across multiple columns with grid-auto-flow, creating a simple CSS-drawn manga face aligned with grid, and a bonus look at experimental CSS masonry layout (available behind a flag in Firefox Nightly). Code snippets and CodePen demos accompany each technique.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://utilitybend.com/blog/fun-things-you-can-do-with-css-grid-besides-your-basic-layout>

## Questions this post answers

### How can I create a button with decorative punch-out holes using only one HTML element?

Style the button element as a three-column CSS grid with grid-template-columns: 1fr auto 1fr, then use button::before and button::after pseudo-elements as grid items to render circular holes. Give the pseudo-elements a background matching the container color and justify-self: end on the after element to keep it aligned to the right column.

_Developers exploring minimal-markup CSS tricks like this often browse similar techniques on daily.dev._

### How do I make a list wrap into multiple columns after a set number of items using CSS Grid?

Set the list container to display: grid with grid-template-rows: repeat(5, auto) and grid-auto-flow: column, which forces items into new columns after five rows fill up. This works well for content you control directly, but is not fully safe for CMS-driven content since it keeps generating columns indefinitely as more items are added.

_Anyone building dynamic multi-column layouts can keep discovering CSS grid patterns like this via daily.dev._

### Is CSS grid masonry layout supported in browsers yet?

CSS grid masonry, using grid-template-rows: masonry syntax, is only available in Firefox Nightly behind a flag, not yet supported broadly across major browsers. Developers wanting a masonry effect today typically rely on workaround techniques using standard CSS grid rather than the native masonry value.

_Front-end developers tracking emerging CSS layout features can follow browser support updates on daily.dev._

## Similar posts on daily.dev

- [My CSS layout strategy](https://daily.dev/posts/my-css-layout-strategy-lfp48ynra) · Blogging and all that Malarkey · 49 upvotes · 2 comments
- [Advanced CSS Grid Layouts for Professional UI Design \(2025 Guide\)](https://daily.dev/posts/advanced-css-grid-layouts-for-professional-ui-design-2025-guide--mng1yrsfn) · C\# Corner · 29 upvotes · 4 comments
- [Responsive Hexagon Grid Using Modern CSS](https://daily.dev/posts/responsive-hexagon-grid-using-modern-css-i4r19n9xf) · CSS-Tricks · 10 upvotes · 0 comments
- [Introducing CSS Grid Lanes](https://daily.dev/posts/introducing-css-grid-lanes-6uomjvxlc) · Hacker News · 27 upvotes · 1 comments

---

Tags: [#css](https://daily.dev/tags/css), [#ui-design](https://daily.dev/tags/ui-design)

[View this post on daily.dev](https://daily.dev/posts/fun-things-you-can-do-with-css-grid-besides-your-basic-layout-w56itcxw9)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Fun things you can do with CSS Grid besides your basic layout","url":"https://daily.dev/posts/fun-things-you-can-do-with-css-grid-besides-your-basic-layout-w56itcxw9","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/fun-things-you-can-do-with-css-grid-besides-your-basic-layout-w56itcxw9"},"datePublished":"2026-09-20T07:43:28.603Z","dateModified":"2026-09-20T07:44:52.891Z","description":"A collection of creative CSS Grid tricks beyond typical page layout, including building buttons with punch-out holes using pseudo elements as grid items,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9d63fc2f53ce5c3f36d7823866abf53a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9d63fc2f53ce5c3f36d7823866abf53a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"utilitybend","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"utilitybend","logo":"https://media.daily.dev/image/upload/s--hONVFSz4--/f_auto,q_auto/v1789890196/logos/utilitybend?_a=BAMAMicg0","url":"https://daily.dev/sources/utilitybend"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/fun-things-you-can-do-with-css-grid-besides-your-basic-layout-w56itcxw9","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,ui-design","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"utilitybend","item":"https://daily.dev/sources/utilitybend"},{"@type":"ListItem","position":3,"name":"Fun things you can do with CSS Grid besides your basic layout"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/fun-things-you-can-do-with-css-grid-besides-your-basic-layout-w56itcxw9#faq","mainEntity":[{"@type":"Question","name":"How can I create a button with decorative punch-out holes using only one HTML element?","acceptedAnswer":{"@type":"Answer","text":"Style the button element as a three-column CSS grid with grid-template-columns: 1fr auto 1fr, then use button::before and button::after pseudo-elements as grid items to render circular holes. Give the pseudo-elements a background matching the container color and justify-self: end on the after element to keep it aligned to the right column. Developers exploring minimal-markup CSS tricks like this often browse similar techniques on daily.dev."}},{"@type":"Question","name":"How do I make a list wrap into multiple columns after a set number of items using CSS Grid?","acceptedAnswer":{"@type":"Answer","text":"Set the list container to display: grid with grid-template-rows: repeat(5, auto) and grid-auto-flow: column, which forces items into new columns after five rows fill up. This works well for content you control directly, but is not fully safe for CMS-driven content since it keeps generating columns indefinitely as more items are added. Anyone building dynamic multi-column layouts can keep discovering CSS grid patterns like this via daily.dev."}},{"@type":"Question","name":"Is CSS grid masonry layout supported in browsers yet?","acceptedAnswer":{"@type":"Answer","text":"CSS grid masonry, using grid-template-rows: masonry syntax, is only available in Firefox Nightly behind a flag, not yet supported broadly across major browsers. Developers wanting a masonry effect today typically rely on workaround techniques using standard CSS grid rather than the native masonry value. Front-end developers tracking emerging CSS layout features can follow browser support updates on daily.dev."}}]}
```

