I am new in CSS and HTML but I creating website where I need to cover text or picture with another one. I made example in Photoshop what exactly I need:
The code is self explanatory, Nevertheless if any question leave a comment.
Text
Using text-shadow less flexible for instance the duplicated the text will always be behind the actual text, If we want to reverse this we will have to align the shadow as the actual text and the actual text as the shadow which is a lot janky and not dynamic.
2
Answers
The code is self explanatory, Nevertheless if any question leave a comment.
Text
Using
text-shadow
less flexible for instance the duplicated the text will always be behind the actual text, If we want to reverse this we will have to align the shadow as the actual text and the actual text as the shadow which is a lot janky and not dynamic.Using pseudo-element highly flexible, Can place the text anywhere, Drawback is must provide the text as an
attribute
or aCSS variable
Image:
A solution based on css shadow:
Online tools like : https://css3gen.com/text-shadow/ could help you to construct right
text-shadow
property