Advertisement
Guest User

style.css

a guest
Feb 28th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. body {
  2. font-family: 'Courier New', Courier, monospace;
  3. }
  4.  
  5. /* English : Replace the dots below by a selector targeting all the images of the page. */
  6. /* Français : Remplace les points ci-dessous par un sélecteur ciblant toutes les images de la page. */
  7.  
  8. img {
  9. width: 300px;
  10. height: 300px;
  11. border-radius: 10px; /* English : Replace with a property that makes the image borders look rounded. */
  12. /* Français : Remplace par une propriété arrondissant les angles de l'image. */
  13. }
  14.  
  15.  
  16.  
  17. /* English : Replace the dots below by a class named "hover-effect" with a :hover pseudo-class. This class has to target the first image and the last image of the page. */
  18. /* Français : Remplace les points ci-dessous par une classe "hover-effect" avec une pseudo-classe :hover. Cette classe doit cibler la première image et la troisième image de la page. */
  19.  
  20. .hover-effect:hover {
  21. opacity: 0.8;
  22. cursor: pointer;
  23. }
  24.  
  25. /* English : Replace the dots below by a selector targeting the second image of the page. Do not use a class or an id! */
  26. /* Français : Remplace les points ci-dessous par un sélecteur ciblant la seconde image de la page. N'utilise pas de classe ou d'id ! */
  27.  
  28. img:nth-child(3) {
  29. filter: grayscale(100%); /* English : Replace with a property that makes the image look black & white. */
  30. /* Français : Remplace par une propriété faisant paraître l'image en noir et blanc. */
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement