Use two offsets followed by a blur and color
W3C’s text-shadow examples show how offsets move the shadow and how blur softens its edge. Try text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.55) on the title. The first two lengths move it horizontally and vertically, and the third is the blur. Keep the text color readable without depending on the shadow for contrast.
Compare a hard shadow and a soft edge
Start with the same lettering and background. Use no blur for a sharp offset, then add a small blur and inspect the fine details. A large blur can cloud the gaps between letters. Use Anton and Inter as independent references when comparing a heavy headline and a small label. Proof the smallest intended text as well as the largest title.
Choose the effect that matches the real background
On a photograph, test the darkest and lightest crops the title might cross. Consider a solid backing if the text changes contrast across the image. Keep the shadow in the style rule so the words remain editable. For a separate copyable caption, the homepage text styles transform characters rather than carrying a CSS effect.
Your questions, answered.
Is text-shadow the same as box-shadow?
Text-shadow follows the letters. Box-shadow applies to an element’s box.
Can copied text keep the shadow?
Ordinary text copying does not carry the CSS style. Use the stylesheet for the page or export a graphic when the visual effect needs to travel.
Sources & background
Sources supporting this page’s explanations. Practical examples are our editorial suggestions.