Advertisement
Jerem67

05-CSS.css

Feb 27th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.75 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: 50px;      /* 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.  
  21. .opac:hover {
  22.     opacity: 0.8;      /* English : Replace with a property responsible for opacity changes. */
  23.                     /* Français : Remplace par une propriété modifiant l'opacité. */
  24.     cursor: pointer;
  25. }
  26.  
  27.  
  28. /* ou comme ceci pour une image sur 2:;
  29. img:nth-of-type(2n+1):hover {
  30.     opacity: 0.8;      
  31.                    
  32.     cursor: pointer;
  33. }
  34. */
  35.  
  36. /* English : Replace the dots below by a selector targeting the second image of the page. Do not use a class or an id! */
  37. /* 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 ! */
  38.  
  39. img:nth-of-type(2) {
  40.     filter: grayscale(100%);  /* English : Replace with a property that makes the image look black & white. */
  41.                 /* Français : Remplace par une propriété faisant paraître l'image en noir et blanc. */
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement