Advertisement
Guest User

css corrigé

a guest
Feb 27th, 2020
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.61 KB | None | 0 0
  1. ody {
  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 : 5px;      /* 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. .effect: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. /* English : Replace the dots below by a selector targeting the second image of the page. Do not use a class or an id! */
  28. /* 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 ! */
  29.  
  30. img:nth-child(3){
  31.     -webkit-filter:grayscale(100%);  /* English : Replace with a property that makes the image look black & white. */
  32.                 /* Français : Remplace par une propriété faisant paraître l'image en noir et blanc. */
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement