How to Create an Image with Transparent Text with CSS

Transparent text on an image, you need to have your image or background image in a <div> element, and the content block in another <div>.

ransparent text on an image, you need to have your image or background image in a <div> element, and the content block in another <div>.

Or instead of the opacity property, you can just set an RGBA color value. See an example in action.

Example:

Output:

Leave a comment

Your email address will not be published. Required fields are marked *