Designing Accessible Text Over Images: Best Practices, Techniques, And Resources (Part 1)<\/h1>\nHannah Milan<\/address>\n 2023-08-04T08:00:00+00:00
\n 2024-05-01T16:05:07+00:00
\n <\/header>\n
What is the text over images<\/em> design pattern? How do we apply this pattern to our designs without sacrificing legibility and readability?<\/p>\nThe text over images design pattern is a design technique used to place text on top of images. It is often used to provide information about the image or to serve as the main website navigation. However, this technique can quickly sacrifice legibility and readability if there is not enough contrast between the text and the image. To prevent this, designers need to ensure that the text and the image have a high enough contrast ratio<\/strong> to be legible and readable. Additionally, designers should also make sure the text is positioned in the right place<\/strong>, away from any image elements that might cause confusion, distraction, or make it difficult to read.<\/p>\n\u201cBecause images play such an important role, often designers end up placing text over an image to leverage the attention-grabbing aspect of the photo while providing text-based content to communicate actual information. However, these endeavors commonly backfire, usually when the contrast between the text and the background is too low<\/a>.\u201d<\/p>\n\u2014 Aurora Harley, \u201cEnsure High Contrast for Text Over Images<\/a>\u201d (NN\/g Nielsen Group)<\/p><\/blockquote>\nBefore going forward, here are some useful resources<\/strong> (on how you can apply these techniques in practice with HTML\/CSS) that are worth checking out:<\/p>\n\n- \u201c7 Rules For Creating Gorgeous UI – Part 2<\/a>,\u201d by Erik Kennedy<\/a><\/li>\n
- \u201cHandling Text Over Images by CSS<\/a>,\u201d by Ahmad Shadeed<\/a><\/li>\n
- \u201cDesign Considerations: Text On Images<\/a>,\u201d by Chris Coyier<\/a><\/li>\n
- \u201cHow Spotify Makes Text On Images Readable<\/a>,\u201d a Twitter thread by Addy Osmani<\/a><\/li>\n<\/ul>\n
How To Design A Text Over An Image<\/h2>\n
Admittedly, when I was starting my design career, and I had very little accessibility knowledge, one of the main things I used in my designs was the text over images design pattern, without me knowing that I was hurting my users who have low vision.<\/p>\n
\u201cA picture says a thousand words. But sometimes, images alone won\u2019t work. This is why typography still proves to be a vital aspect of design despite the focus on more visual content. Remember that the need for visual content does not tell you to stop adding text to your designs \u2014 it simply reminds you to do so in the most tasteful and stylish way possible. And, of course, readability should not be sacrificed in the name of design. You can\u2019t add text that people can barely understand, then argue that it\u2019s a piece of art. Sending a message that cannot be deciphered defies the purpose of what you\u2019re doing.\u201d<\/p>\n
\u2014 Igor Ovsyannykov, \u201c10 Typography Tricks to Make Your Text Much More Readable<\/a>\u201d<\/p><\/blockquote>\nYet accessibility is a key aspect of design, and working with typography is one of the cornerstones of UX design. There are many typography principles that will help you create user-friendly designs. In the following sections of the article, you will learn more about how you can improve your design without<\/em> sacrificing the accessibility aspect and how to combine text and images better.<\/p>\nAccording to WCAG Success Criterion 1.4.3<\/a>, make sure that your text on images should meet the minimum contrast of<\/p>\n\n- 3:1<\/strong> for large text (text bigger than 18 pt normal, or text bigger than 14 pt bold);<\/em><\/li>\n
- 4.5:1<\/strong> for body text (text lower than 18 pt normal, or text lower than 14 pt bold).<\/em><\/li>\n<\/ul>\n
Ensure that a minimum visual contrast ratio of 4.5:1 is maintained between the text and its background. This minimum contrast ratio should also be maintained in the case of images of text<\/a>.<\/p>\n\u2014 \u201cUnderstanding Success Criterion 1.4.3: Contrast (Minimum)<\/a>,\u201d W3.org<\/p><\/blockquote>\n\n
\n 2024-05-01T16:05:07+00:00
\n <\/header>\n
The text over images design pattern is a design technique used to place text on top of images. It is often used to provide information about the image or to serve as the main website navigation. However, this technique can quickly sacrifice legibility and readability if there is not enough contrast between the text and the image. To prevent this, designers need to ensure that the text and the image have a high enough contrast ratio<\/strong> to be legible and readable. Additionally, designers should also make sure the text is positioned in the right place<\/strong>, away from any image elements that might cause confusion, distraction, or make it difficult to read.<\/p>\n \u201cBecause images play such an important role, often designers end up placing text over an image to leverage the attention-grabbing aspect of the photo while providing text-based content to communicate actual information. However, these endeavors commonly backfire, usually when the contrast between the text and the background is too low<\/a>.\u201d<\/p>\n \u2014 Aurora Harley, \u201cEnsure High Contrast for Text Over Images<\/a>\u201d (NN\/g Nielsen Group)<\/p><\/blockquote>\n Before going forward, here are some useful resources<\/strong> (on how you can apply these techniques in practice with HTML\/CSS) that are worth checking out:<\/p>\n Admittedly, when I was starting my design career, and I had very little accessibility knowledge, one of the main things I used in my designs was the text over images design pattern, without me knowing that I was hurting my users who have low vision.<\/p>\n \u201cA picture says a thousand words. But sometimes, images alone won\u2019t work. This is why typography still proves to be a vital aspect of design despite the focus on more visual content. Remember that the need for visual content does not tell you to stop adding text to your designs \u2014 it simply reminds you to do so in the most tasteful and stylish way possible. And, of course, readability should not be sacrificed in the name of design. You can\u2019t add text that people can barely understand, then argue that it\u2019s a piece of art. Sending a message that cannot be deciphered defies the purpose of what you\u2019re doing.\u201d<\/p>\n \u2014 Igor Ovsyannykov, \u201c10 Typography Tricks to Make Your Text Much More Readable<\/a>\u201d<\/p><\/blockquote>\n Yet accessibility is a key aspect of design, and working with typography is one of the cornerstones of UX design. There are many typography principles that will help you create user-friendly designs. In the following sections of the article, you will learn more about how you can improve your design without<\/em> sacrificing the accessibility aspect and how to combine text and images better.<\/p>\n According to WCAG Success Criterion 1.4.3<\/a>, make sure that your text on images should meet the minimum contrast of<\/p>\n Ensure that a minimum visual contrast ratio of 4.5:1 is maintained between the text and its background. This minimum contrast ratio should also be maintained in the case of images of text<\/a>.<\/p>\n \u2014 \u201cUnderstanding Success Criterion 1.4.3: Contrast (Minimum)<\/a>,\u201d W3.org<\/p><\/blockquote>\n\n
How To Design A Text Over An Image<\/h2>\n
\n