Advertisement
Garde_Cecile

pre requis 05 - CSS : sélecteurs et propriétés partie css

Feb 21st, 2020
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.27 KB | None | 0 0
  1. body {
  2.     font-family: 'Courier New', Courier, monospace;
  3. }
  4.  
  5.  
  6. img {
  7.     width: 300px;
  8.     height: 300px;
  9.     border-radius: 10px;
  10. }
  11.  
  12. img:nth-of-type(2n+1):hover {
  13.     opacity: 0.8;
  14.     cursor: pointer;
  15. }
  16.  
  17. img:nth-of-type(2) {
  18.     filter: grayscale(1);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement