Tips & Tricks for Designing an Image with Text Overlay

aniaromanska

Written by Ania Romańska

Published on . Last edited on .

Four versions of the same beach photo with the heading Indiana Dunes on top

TL;DR

Four ways to keep text readable on an image: a color or gradient overlay, blur, a colored box behind the text, and a text shadow.

In Divi, a gradient covers a background image when Place Gradient Above Background Image is on (Content → Background → Gradient).

A Background Color plus Background Image Blend set to Luminosity tints and desaturates a background image in one step, without an image editor.

Divi's Design → Filters → Blur blurs the whole element including its text, so blur the image itself (or a separate image element) instead.

Readable text needs a contrast ratio of at least 4.5:1 for regular text and 3:1 for large headings.

Updated for Divi 5: These design tips work in any builder. For each technique I added where to find the matching setting in Divi 5 (the settings are in the same places in Divi 4), so you can often skip the image editor.

When you want to draw the eye to a headline, slogan, or a short piece of text, the answer is obvious: an image with a text overlay! The image background will attract attention and make the text stand out. Of course, like all seemingly simple methods, it’s not always as easy as it sounds. In this post, we’ll take a quick look at the most common mistakes, followed by an easy guide to designing a beautiful and effective image with a text overlay.

Image with text overlay mistakes

The most common mistakes are picking an image that doesn’t fit the project, adding text without preparing the image first, and mixing images with different colors and tones.

The most obvious mistake in any web design project is not thinking things through. Slapping some stuff together without planning ahead usually results in a project that doesn’t look professional. The same rule applies to creating an image with a text overlay. If you pick an image without considering your project goals, your color scheme etc., chances are it won’t fit the rest of the website.

Another mistake would be to add a text overlay without prepping the image first. It’s often important to edit the image as necessary. Otherwise, the end result may be unattractive or even unreadable.

And if you’re using multiple images, it’s vital to make them look consistent! Using a few different images, each with different colors and tones might make your website look messy.

Thankfully, there are some easy tips and tricks you can use to design a stylish and professional image with a text overlay. Here they are!

Colorize the image

Use a color or gradient overlay to make the image consistent with your color scheme. It will lower the image’s contrast and make the colors more uniform, creating a slightly muted background. Thanks to this, the text will really pop!

Desaturated beach photo with a blue-green gradient overlay and a white heading and paragraph on top

Tip: For the best results, desaturate the image first! This way, the only color in the image will come from the overlay. It’s especially useful if you’re using multiple images. The result will be a clean, professional look with a consistent color scheme.

In Divi: open the section (or row, or module) settings and go to Content ➜ Background. Add your image in the Image tab, then add a gradient in the Gradient tab and turn on Place Gradient Above Background Image, so the gradient covers the photo. Want to desaturate and colorize in one go, without an image editor? Set a Background Color and change the image’s Background Image Blend to Luminosity (with the Parallax Effect off): the photo keeps its light and shadows but takes its color from the background color.

Use blur

Blurring the background image hides distracting details, so the eye goes straight to the text.

Blurred beach photo with a sharp white heading and paragraph on top

If you want to use a complex image as background, you run the risk of introducing too many details that will compete for the user’s attention. To solve this problem, you can either choose a less detailed image or use blur. Blurring the image is an effective technique of drawing the eye to the text without overwhelming your website users with too many details.

Tip: Make sure that the basic content of your image is still recognizable after blurring. If you blur too much, you may end up with a very abstract background. Unless this is the effect you’re going for, be careful not to overdo it!

In Divi: the easiest way is to blur the image in your image editor before you upload it. Divi’s Design ➜ Filters ➜ Blur blurs the whole element, including any text inside it, so only use it on an element that holds just the image (for example an Image module placed under the text).

Use a colored box

If you have a perfect image that you don’t want to alter, or if the above methods aren’t suitable for your project, you can use a colored box. The box will serve as a buffer between the image and the text overlay, making the text easy to read regardless of how detailed the image is. The box can be semi-transparent or opaque.

Beach photo with the white heading and paragraph placed on a solid black box

Tip: Use this method for projects where the image is not just a background for the text but an important element you want to showcase.

In Divi: give the Text module (or a Group module that holds your heading and text) a background color in Content ➜ Background, and add some padding in Design ➜ Spacing. For a semi-transparent box, lower the opacity in the color picker, for example rgba(0,0,0,0.6).

Drop shadow

Adding a drop shadow to the text is an effective and subtle blending technique. It makes the text stand out and doesn’t require you to alter the image too much.

Beach photo with a white heading and paragraph that have a soft dark text shadow

Tip: As this is a subtle effect, make sure to pay attention to the text’s placement. Pick a less detailed part of your image as the background for the text overlay.

In Divi: open the module and go to Design ➜ Text (or Title Text / Body Text, depending on the module) ➜ Text Shadow. Pick a preset, then adjust the blur and color until the shadow is soft enough.

Trial and error

Even with the right technique, you’ll usually need a few rounds of tweaking (image, placement, font, size and color) until the text is easy to read.

Still, when all is said and done, nothing can beat the old trial-and-error approach. Even if you pick one of the previous methods, you may still have to go an extra mile making sure everything fits perfectly.

Start with a clear goal in mind. What effect do you want to achieve? How important is the image vs. the text? Keeping your goal in sight, choose the right image and decide whether it should be altered. Then, consider the placement of the text overlay, the font, size, color. Should it be opaque or transparent? Make sure the text is easy to read!

A quick way to check readability is color contrast: aim for at least 4.5:1 for regular text and 3:1 for large headings. I explain how to check it in my simple accessibility tips for Divi.

Tip: Have you spent hours tweaking your image with a text overlay to perfection? It’s time to let your eyes rest! Get a short break, look away from your computer screen, focus your attention on something unrelated to your project. When you come later with a fresh mind, it will be much easier to assess your work objectively.

Bonus tip: Can’t decide between two or three versions? Get some more eyes on them!

The bottom line

When creating an image with a text overlay, it’s important to be aware of various options. You may not use all of them but knowing about them will allow you to pick what’s best for your project!

Do you know some other tips and tricks for designing an image with text overlay? Or maybe there is another topic that you’d like me to tackle? Let me know in my Divi Lovers Facebook group.

This article has been tagged with: Accessibility

Tags

Four versions of the same beach photo with the heading Indiana Dunes on top

Table of Contents

Popular questions

How do I make text readable on top of an image?

Lower the image's contrast and detail behind the text: add a color or gradient overlay, blur the image, put the text on a colored box, or add a soft text shadow. Then check the color contrast of the text against the busiest part of the image.

How do I add a color overlay to a background image in Divi?

Open the section, row or module settings, go to Content → Background, add the image, then add a gradient (or a semi-transparent color gradient) and turn on Place Gradient Above Background Image. It works the same in Divi 5 and Divi 4.

Can I blur a background image in Divi without blurring the text?

Not with the Filters setting on the same element, because the blur applies to everything inside it. Blur the image in an image editor before uploading, or place the image in its own element under the text and blur only that element.

Should I use a text shadow or a colored box?

A text shadow is subtle and keeps the whole image visible, so it works best when the text sits on a calm part of the photo. A colored box guarantees readability on any image, even a very detailed one.

About the Author

Ania Romańska

I'm a Divi expert from Poland, with over 10 years building the templates and courses that make up Divi Lover. I'm also a mom of five, which taught me a thing or two about explaining things clearly the first time.

Hey there!Sorry to interrupt,but this one's important!

Divi Lover is turning 10!
Let’s celebrate with 40% off everything.

Ten years of Divi templates, plugins and tips, and a brand-new website to celebrate it. To say thank you, every product in the shop is 40% off until Cyber Monday.

Your code

Paste it at checkout. Valid until November 30.