Set Image as Background for Text using CSS

 

background clip text

Hello friends, in this blog, we will share a simple snippet about how to put an Image in Text using the CSS background-clip property. In this blog, I have shared many snippets on CSS Animation Examples, HTML CSS, Bootstrap, JavaScript, jQuery plugins implementation etc. Please Make sure to check those by clicking the load more button underneath the Homepage.


In Webdesign, we sometimes need an image to be a background in a particular text. If we don't want the full background for the container but the text-only then we have to use the 'background-clip: text' CSS property. Here using the property, we can make the background clipped underneath the text we are using. Although the color of the text needs to be transparent if we want this CSS property to work. Normally all major browsers support the 'background-clip: text' property if we use the correct vendor prefix. For Firefox & Edge support, we can use the property directly. for Chrome & Safari support, we have to use '-webkit-background-clip: text'.



HTML:




CSS:




Thank you for visiting the blog today. 

Please do not enter any spam link in the comment box.

Post a Comment

Please do not enter any spam link in the comment box.

Post a Comment (0)

Previous Post Next Post