Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. body {
  6. background-image: url("img_tree.gif"), url("img_flwr.gif");
  7. background-color: #dddddd;
  8. opacity: 0.5;
  9. filter: alpha(opacity=50);
  10. }
  11. </style>
  12. </head>
  13. <body>
  14.  
  15. </body>
  16. </html>
  17.  
  18. <!DOCTYPE html>
  19. <html>
  20. <head>
  21. <style>
  22. img {
  23. opacity: 0.5;
  24. filter: alpha(opacity=50); /* For IE8 and earlier */
  25. }
  26. </style>
  27. </head>
  28. <body>
  29.  
  30. <h1>Image Transparency</h1>
  31. <p>The opacity property specifies the transparency of an element. The lower the value, the more transparent:</p>
  32.  
  33. <p>Image with 50% opacity:</p>
  34. <img src="img_forest.jpg" alt="Forest" width="170" height="100">
  35.  
  36. </body>
  37. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement