gveracruz

Untitled

Nov 18th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. /* HTML*/
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8">
  6. <title>Catch'em all!</title>
  7. <link rel="stylesheet" type="image/jpg" href="style2.css">
  8. </head>
  9. <body>
  10. <main>
  11. <div>
  12. <img class= "hover-effect" src="http://images.innoveduc.fr/integration_parcours/css/css_selectors_props/hobbit-house.jpg" alt="Hobbit house">
  13. <p>Photo by conner Bowe on Unsplash</p>
  14. <img src="http://images.innoveduc.fr/integration_parcours/css/css_selectors_props/hobbit-house-grass.jpg" alt="Hobbit house with grass">
  15. <p>Photo by Jeff Finley on Unsplash</p>
  16. <img class= "hover-effect" src="http://images.innoveduc.fr/integration_parcours/css/css_selectors_props/hobbit-house-grey-grass.jpg" alt="Hobbit house with grey grass">
  17. <p>Photo by Tyler Lastovich on Unsplash</p>
  18. </div>
  19. </main>
  20. </body>
  21. </html>
  22.  
  23. /* CSS*/
  24.  
  25. body {
  26. font-family: 'Courier New', Courier, monospace;
  27. }
  28.  
  29.  
  30. img {
  31. width: 300px;
  32. height: 300px;
  33. border-radius: 15px;
  34. }
  35.  
  36.  
  37. .hover-effect img:hover {
  38. opacity : 0.8;
  39. }
  40.  
  41.  
  42. *img {
  43.  
  44. filter: grayscale(100%);
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment