---
title: "Discussion on \"Showing the middle of an image\" | Hashnode"
description: "Discussion on \"Showing the middle of an image\". I've found a cute dog photo on Unsplash and I'm using it as a hero image. Since it's longer than it is tall, then I want to constrain the height. Except then it only shows the top of the image. So how to show the middle?\nSet up\nHere's how I have my h..."
url: "https://hashnode.com/posts/showing-the-middle-of-an-image/6301feafdc09f71f101c6e4f"
---

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

Discussion

# [Showing the middle of an image](https://blog.nicm42.me.uk/showing-the-middle-of-an-image?utm_source=hashnode&utm_medium=feed)

I've found a cute dog photo on Unsplash and I'm using it as a hero image. Since it's longer than it is tall, then I want to constrain the height. Except then it only shows the top of the image. So how to show the middle? Set up Here's how I have my h...

Aug 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.
