Advertisement
Guest User

CSS_yassine

a guest
Nov 20th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.77 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.     overflow:hidden;
  10.     width: 300px;
  11.     height: 300px;
  12.     -moz-border-radius: 50%;
  13.         -ms-border-radius: 50%;
  14.         -o-border-radius: 50%;
  15.         border-radius: 50%;
  16.              /* English : Replace with a property that makes the image borders look rounded. */
  17.              /* Français : Remplace par une propriété arrondissant les angles de l'image. */
  18. }
  19.  
  20.  
  21.  
  22. /* 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. */
  23. /* 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. */
  24.  
  25. .survol:hover {
  26.     opacity : 0.8;      /* English : Replace with a property responsible for opacity changes. */
  27.                     /* Français : Remplace par une propriété modifiant l'opacité. */
  28.     cursor: pointer;
  29. }
  30.  
  31. /* English : Replace the dots below by a selector targeting the second image of the page. Do not use a class or an id! */
  32. /* 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 ! */
  33.  
  34. img:nth-of-type(2){
  35.  
  36.     filter: grayscale(100%);
  37.     opacity: 1;
  38.    
  39.  
  40.     /* 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