---
title: "Discussion on \"Dynamic Image height adjustment in CSS based on content\" | Hashnode"
description: "Discussion on \"Dynamic Image height adjustment in CSS based on content\". Let say, we need an image and text content. The text has to overlay on the image. If the text content grows, the image height should also increase. The most common way of doing this is putting the image as a background-image in CSS.\nSimilar to this\n...."
url: "https://hashnode.com/posts/dynamic-image-height-adjustment-in-css-based-on-content/5d6f92c9c747e53257b12ca6"
---

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

Discussion

# [Dynamic Image height adjustment in CSS based on content](https://saranraj.hashnode.dev/dynamic-image-height-adjustment-in-css-based-on-content?utm_source=hashnode&utm_medium=feed)

Let say, we need an image and text content. The text has to overlay on the image. If the text content grows, the image height should also increase. The most common way of doing this is putting the image as a background-image in CSS. Similar to this ....

Sep 4, 2019 · saranraj.hashnode.dev  
Read the article

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

## Written by

[Saranraj Sekar](https://hashnode.com/@saranraj)

@saranraj · Tamil Nadu, India

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

Raising the Bar

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
