Advertisement
makispaiktis

Codecademy - 27th Course (Change color with click - CSS)

Dec 26th, 2019 (edited)
428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.57 KB | None | 0 0
  1. body {
  2.   background-color: white;
  3.   font-family: 'Raleway', sans-serif;
  4. }
  5.  
  6. img {
  7.   display: block;
  8.   margin-left: auto;
  9.   margin-right: auto;
  10.   length: 300px;
  11.   width:700px;
  12. }
  13.  
  14. .container {
  15.   position: relative;
  16.   text-align: center;
  17.   color: white;
  18. }
  19.  
  20. .centered {
  21.   position: absolute;
  22.   top: 40%;
  23.   left: 50%;
  24.   transform: translate(-50%, -50%);
  25.   font-size: 3em;
  26.   color: #459287;
  27. }
  28.  
  29. button {
  30.   height:40px;
  31.   width: 160px;
  32.   font-size: 18px;
  33.   color: white;
  34.   background-color:#2c5e62;
  35.   border-radius: 8px;
  36. }
  37.  
  38. p {
  39.     text-align: center;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement