Set IMG element color property - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Color

Description

Set IMG element color property

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

img {<!--   ww  w .  j av  a  2 s  .  c o  m-->
   height:200px;
   width:200px;
   color:green;
}


      </style> 
 </head> 
 <body> 
  <img alt="This is some text." src="https://www.java2s.com/style/demo/Opera.png">  
 </body>
</html>

Related Tutorials