HTML CSS examples for CSS Widget:Image Text
Insert image in the text instead of a color using CSS3
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> h1 {<!--from w ww. ja va 2 s . c o m--> font-family:Arial; font-size:6em; text-align:center; background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png'); -webkit-background-clip:text; background-clip:text; color:Chartreuse; } </style> </head> <body> <h1>Lorem ipsum dolo</h1> </body> </html>