CSS Transparency


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <img src="klematis.jpg" style="opacity:0.4;filter:alpha(opacity=40)"
  2. onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100"
  3. onmouseout="this.style.opacity=0.4;this.filters.alpha.opacity=40" />
  4.  
  5. <img src="klematis2.jpg" style="opacity:0.4;filter:alpha(opacity=40)"
  6. onmouseover="this.style.opacity=1;this.filters.alpha.opacity=100"
  7. onmouseout="this.style.opacity=0.4;this.filters.alpha.opacity=40" />

URL: http://www.w3schools.com/Css/css_image_transparency.asp

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.