---
title: "Discussion on \"How to create a Grid of squares\" | Hashnode"
description: "Discussion on \"How to create a Grid of squares\". The problem\nYou want to display items side by side in a grid. You set the number of columns, and you want each item's height to match its width to form a square. How do you do this?\nI faced this problem at work. I needed to create a gallery like on i..."
url: "https://hashnode.com/posts/how-to-create-a-grid-of-squares/6678374ad30bee5ee18a5e30"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to create a Grid of squares](https://tigerabrodi.blog/how-to-create-a-grid-of-squares?utm_source=hashnode&utm_medium=feed)

The problem You want to display items side by side in a grid. You set the number of columns, and you want each item's height to match its width to form a square. How do you do this? I faced this problem at work. I needed to create a gallery like on i...

Jun 23, 2024 · 3 min read · tigerabrodi.blog  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#ui](https://hashnode.com/tag/ui)
-   [#ui-design](https://hashnode.com/tag/ui-design)

## Written by

[Tiger Abrodi](https://hashnode.com/@tigerabrodi)

@tigerabrodi · Germany

  
[View profile](https://hashnode.com/@tigerabrodi)

Obsessed with crafting software.

Just a guy who loves to write code and watch anime.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
