gveracruz

Untitled

Nov 18th, 2019
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 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.  
  24. CSS
  25.  
  26. body {
  27. font-family: 'Courier New', Courier, monospace;
  28. }
  29.  
  30.  
  31. img {
  32. width: 300px;
  33. height: 300px;
  34. border-radius: 20%;
  35. }
  36.  
  37.  
  38. .hover-effect {
  39. opacity : 0.8;
  40. }
  41.  
  42.  
  43. img: nth-child(3) {
  44.  
  45. filter: grayscale(100%);
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment