---
title: "Discussion on \"Using CSS Grid to put elements on top of each other\" | Hashnode"
description: "Discussion on \"Using CSS Grid to put elements on top of each other\". This is a very cool trick I learned recently.\nThe problem\nI have a card that contains an image and some text. The size of the image depends on the width of the card. The text could be any length.\nWhen you hover on the card it fills the whole card wit..."
url: "https://hashnode.com/posts/using-css-grid-to-put-elements-on-top-of-each-other/6288b0b79490454c4d847e3d"
---

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

Discussion

# [Using CSS Grid to put elements on top of each other](https://blog.nicm42.me.uk/using-css-grid-to-put-elements-on-top-of-each-other?utm_source=hashnode&utm_medium=feed)

This is a very cool trick I learned recently. The problem I have a card that contains an image and some text. The size of the image depends on the width of the card. The text could be any length. When you hover on the card it fills the whole card wit...

May 21, 2022 · 3 min read · blog.nicm42.me.uk  
Read the article

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

## Written by

[Nic](https://hashnode.com/@nicm42)

@nicm42 · England

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

This week I learnt...

Front End Developer. I like problem solving and making things pretty. I also like red.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
