Hi there!
Me and @Mike1 would like to know if it's possible to add text over a CSS background-image.
Let's take the following squirrel as an example:
Is it possible to add a text in front of it?
We would like to know only if it's possible.
Hi there!
Me and @Mike1 would like to know if it's possible to add text over a CSS background-image.
Let's take the following squirrel as an example:
Is it possible to add a text in front of it?
We would like to know only if it's possible.
Probably using the z-index css property.
You can use CSS pseudo classes, like ::after
and ::before
, and set their content
property with the text.
But make sure the OSC built-in elements aren't using them already (check Dev Tools). Most of them do.
And what about CSS background-clip text | Michael Gearon
This maybe with transparent in div background property instead of the color value