Skip to content

Commit a862f77

Browse files
fix(ldearn): Improve note text on text shadow page (mdn#40435)
* improve note text * Apply suggestions from code review Co-authored-by: Chris Mills <chrisdavidmills@gmail.com> --------- Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
1 parent 6f149f4 commit a862f77

File tree

1 file changed

+5
-5
lines changed
  • files/en-us/learn_web_development/howto/solve_css_problems/add_a_text_shadow

1 file changed

+5
-5
lines changed

files/en-us/learn_web_development/howto/solve_css_problems/add_a_text_shadow/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ page-type: learn-faq
66
sidebar: learn-how-to
77
---
88

9-
In this guide you can find out how to add a shadow to any text on your page.
9+
In this guide, you'll learn how to add a shadow to any text on your page.
1010

1111
## Adding shadows to text
1212

13-
In our [guide to adding a shadow to boxes](/en-US/docs/Learn_web_development/Howto/Solve_CSS_problems/Add_a_shadow), you can find out how to add a shadow to any element on your page. However, that technique only adds shadows to the element's surrounding box. To add a drop shadow to the text inside the box you need a different CSS property {{cssxref("text-shadow")}}.
13+
Our [guide to adding a shadow to boxes](/en-US/docs/Learn_web_development/Howto/Solve_CSS_problems/Add_a_shadow) explains how to add a shadow to any element on your page. However, that technique only adds shadows to the element's surrounding box. To add a drop shadow to the text itself, you need a different CSS property: {{cssxref("text-shadow")}}.
1414

1515
The `text-shadow` property takes a number of values:
1616

@@ -19,7 +19,7 @@ The `text-shadow` property takes a number of values:
1919
- A blur radius
2020
- A color
2121

22-
In the example below we have set the x-axis offset to 2px, the y-axis offset to 4px, the blur radius to 4px, and the color to a semi-transparent blue. Play with the different values to see how they change the shadow.
22+
In the example below, we have set the x-axis offset to `2px`, the y-axis offset to `4px`, the blur radius to `4px`, and the color to a semi-transparent blue. Play with the different values to see how they change the shadow effect.
2323

2424
```html live-sample___text-shadow
2525
<div class="wrapper">
@@ -34,7 +34,7 @@ h1 {
3434
}
3535
```
3636

37-
{{EmbedLiveSample("text-shadow")}}
37+
{{EmbedLiveSample("Text_shadow")}}
3838

3939
> [!NOTE]
40-
> It can be quite easy to make text hard to read with text shadows. Make sure that the choices you make still leave your text readable and provide enough [color contrast](/en-US/docs/Web/Accessibility/Guides/Understanding_WCAG/Perceivable/Color_contrast) for visitors who have difficulty with low-contrast text.
40+
> When adding text shadows, you might unintentionally make the text difficult to read. Ensure that your choices offer sufficient [color contrast](/en-US/docs/Web/Accessibility/Guides/Understanding_WCAG/Perceivable/Color_contrast) to keep your text readable.

0 commit comments

Comments
 (0)