Is there a way to use CSS to create the cutting out transparent text from the background effect as shown below?
It would be a shame to lose all that valuable SEO because images replace text.
I thought of shadows first but I couldn't think of anything...
This picture is the background of the website, absolutely positioned<img>
tag
While this can be achieved with CSS, a better approach is to use inline SVG with SVG masks. This approach has some advantages over CSS:
CodePen Demo: SVG Text Mask
If your goal is to make the text selectable and searchable, you need to include it outside the
<defs>
tag. The following example shows one way to preserve transparent text using the< using the >
tag:CSS3 can be implemented, but not all browsers support it
With background clip: text; you can use a text background, but it must be aligned with the page background