Multi-line CSS text-shadow
How do I make an multi-line css text-shadow?
When using a large text-shadow blur on multi-line elements, the blur will cast a shadow over the previous lines of text. This method is a proposed fix.. What is a multi-line css text-shadow? How do you make a multi-line css text-shadow? This script and codes were developed by John Heiner on 14 November 2022, Monday.
Multi-line CSS text-shadow - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Multi-line CSS text-shadow</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <p class="shadow" data-text="Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo."> Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.
</p>
</body>
</html>
Multi-line CSS text-shadow - Script Codes CSS Codes
.shadow { position: relative; text-shadow: 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black, 0 0 2em black; color: white; font-size: 3em; z-index: 1; color: black;
}
.shadow:after { content: attr(data-text); color: white; position: absolute; top: 0; left: 0; z-index: 2; /* comment out the next line to see what it used to look like without the fix */ text-shadow: none;
}
Developer | John Heiner |
Username | johnheiner |
Uploaded | November 14, 2022 |
Rating | 3 |
Size | 2,104 Kb |
Views | 40,480 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Bouncy Box | 3,423 Kb |
Social Icon System | 8,772 Kb |
Loading Icon | 1,987 Kb |
A Pen by John Heiner | 3,599 Kb |
Floating Labels | 3,880 Kb |
Page Transition with Loader | 3,824 Kb |
Unboxed Technology Footer Animation | 8,397 Kb |
Loading Animation | 2,364 Kb |
Tooltip | 2,863 Kb |
Easy Hamburger to X Icon animation | 2,736 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
A Pen by Ash | Littleginger | 2,386 Kb |
Scarlett Johansson Tribute Page | Diomed | 3,233 Kb |
Myprofile | SoufianeAbid | 2,451 Kb |
ABVI Menu Discarded | Overdrivemachines | 3,607 Kb |
Pure CSS Spinners | Jlong | 2,043 Kb |
Table Exercise | Fresco | 9,585 Kb |
Click handler test | Snapson | 2,329 Kb |
Angular Sandbox | Alexgurrola | 1,616 Kb |
Html5-canvas-snow-effect | MariamMassadeh | 2,609 Kb |
Hard-Stop Gradients | Mackdoyle | 2,288 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!