--- title: Image text overlay tags: visual expertise: beginner author: chalarangelo cover: blog_images/mountain-lake-cottage.jpg firstSeen: 2020-08-18T15:07:32+03:00 lastUpdated: 2021-10-13T19:29:39+02:00 --- Displays a text on top of an image using an overlay. - Use `backdrop-filter` to apply a `blur(14px)` and `brightness(80%)` effect. This makes text readable regardless of background image and color. ```html

Hello, World

``` ```css div { position: relative; } .text-overlay { position: absolute; top: 0; left: 0; padding: 1rem; font-size: 2rem; font-weight: 300; color: white; backdrop-filter: blur(14px) brightness(80%); } ```