Skip to content

Instantly share code, notes, and snippets.

@krez69
Last active September 4, 2019 15:06
Show Gist options
  • Save krez69/c4c25c82573beb519934fa48a0e56f3d to your computer and use it in GitHub Desktop.
Save krez69/c4c25c82573beb519934fa48a0e56f3d to your computer and use it in GitHub Desktop.
quete5
<! DOCTYPE html>
< html lang = " en " >
< tête >
< meta charset = " UTF-8 " >
< title > Attrapez-les tous! </ title >
< link rel = " stylesheet " href = " style.css " type = " text / css " >
</ head >
< body >
< section >
< img class = " hover-effect " src = " http://images.innoveduc.fr/integration_parcours/css/css_selectors_props/hobbit-house.jpg " alt = " Hobbit house " >
< p > Photo de conner Bowe sur Unsplash </ p >
< img src = " http://images.innoveduc.fr/integration_parcours/css/css_selectors_props/hobbit-house-grass.jpg " alt = " Hobbit house avec de l'herbe " >
< p > Photo de Jeff Finley sur Unsplash </ p >
< img class = " hover-effect " src = " http://images.innoveduc.fr/integration_parcours/css/css_selectors_props/hobbit-house-grey-grass.jpg " alt = "Une maison de pichets avec de l'herbe grise " >
< p > Photo de Tyler Lastovich sur Unsplash </ p >
</ section >
</ body >
</ html >
body {
font-family: 'Courier New', Courier, monospace;
}
/* English : Replace the dots below by a selector targeting all the images of the page. */
/* Français : Remplace les points ci-dessous par un sélecteur ciblant toutes les images de la page. */
img {
width: 300px;
height: 300px;
border-radius: 30px; /* English : Replace with a property that makes the image borders look rounded. */
/* Français : Remplace par une propriété arrondissant les angles de l'image. */
}
/* 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. */
/* 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. */
.hover-effect:hover{
opacity : 0.8; /* English : Replace with a property responsible for opacity changes. */
/* Français : Remplace par une propriété modifiant l'opacité. */
cursor: pointer;
}
/* English : Replace the dots below by a selector targeting the second image of the page. Do not use a class or an id! */
/* 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 ! */
img:not(.hover-effect){
filter : grayscale(100%); /* English : Replace with a property that makes the image look black & white. */
/* Français : Remplace par une propriété faisant paraître l'image en noir et blanc. */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment