---
title: "Discussion on \"Two ways to achieve an image colour overlay with CSS.\" | Hashnode"
description: "Discussion on \"Two ways to achieve an image colour overlay with CSS.\". Using an image with a dark overlay is one of the quickest ways to make a beautiful hero header for a blog, landing page or portfolio. It's a trick I use constantly.\nWhy should you add an overlay to your image?\nAn overlay on an image not only improves..."
url: "https://hashnode.com/posts/two-ways-to-achieve-an-image-colour-overlay-with-css/5d90d81362b6f53f7d8304ca"
---

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

Discussion

# [Two ways to achieve an image colour overlay with CSS.](https://ellen_dev.hashnode.dev/two-ways-to-achieve-an-image-colour-overlay-with-css?utm_source=hashnode&utm_medium=feed)

Using an image with a dark overlay is one of the quickest ways to make a beautiful hero header for a blog, landing page or portfolio. It's a trick I use constantly. Why should you add an overlay to your image? An overlay on an image not only improves...

Sep 29, 2019 · ellen\_dev.hashnode.dev  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#design](https://hashnode.com/tag/design)
-   [#beginners](https://hashnode.com/tag/beginners)
-   [#newbie](https://hashnode.com/tag/newbie)
-   [#html](https://hashnode.com/tag/html)

## Written by

[Ellen Macpherson](https://hashnode.com/@ellen_dev)

@ellen\_dev · Belfast, UK

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

Frontend developer passionate about all things involving human-centered design. 👩🏻‍💻

I&#39;m a junior designer/developer currently based in Belfast, Northern Ireland, though I&#39;m also available remotely. Born in Sydney, I went to university in Scotland to study history and politics. It was only during my Masters year that I realised my passion for coding, and I was lucky enough to get my start through Code First: Girls. Day-to-day, I turn coffee into TV apps at BT. Outside of the 9-5, I build small apps, blogs and websites using HTML, CSS, JavaScript. I&#39;m all about about human-centered design and user experience. So if you want to build an app your mum can use, let&#39;s have a chat. Away from the computer, I am hugely passionate about seeing more diversity in tech spaces. Only 4% of software developers in the UK identify as female, and I&#39;m keen to get involved in making that a much larger number. I am currently working with BT to improve their graduate and apprenticeship recruitment processes.

## Responses 2

Markdown supported · ⌘↵ to post

[Aleem Akinyoola](https://hashnode.com/@Aleemcode)

[Oct 3, 2019](https://hashnode.com/posts/two-ways-to-achieve-an-image-colour-overlay-with-css/5d90d81362b6f53f7d8304ca/comment/5d9631df4deba8073721f21b)

Great!

[Grace Snow](https://hashnode.com/@gracesnow)

[Oct 3, 2019](https://hashnode.com/posts/two-ways-to-achieve-an-image-colour-overlay-with-css/5d90d81362b6f53f7d8304ca/comment/5d958a9c2486a4cb58836ccd)

Love this article. Thanks for the really clear descriptions!

Last time I built a design like this I just manipulated the image with a colored overlay before uploading it to the site. But I definitely prefer the idea of using css with a fallback for old browsers

[Ellen Macpherson](https://hashnode.com/@ellen_dev)

[Oct 4, 2019](https://hashnode.com/posts/two-ways-to-achieve-an-image-colour-overlay-with-css/5d90d81362b6f53f7d8304ca/comment/5d958a9c2486a4cb58836ccd#reply-5d96f4af3c3af10237c0c14c)

Thanks for reading! I'm glad you enjoyed it. Manipulating the image is a good solution too. I just often find CSS is easier if you get indecisive about design or the client's needs change.
