Facebook
From movi, 1 Month ago, written in HTML5.
Embed
Download Paste or View Raw
Hits: 143
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. .button {
  6.   border: none;
  7.   color: white;
  8.   padding: 15px 32px;
  9.   text-align: center;
  10.   text-decoration: none;
  11.   display: inline-block;
  12.   font-size: 16px;
  13.   margin: 4px 2px;
  14.   cursor: pointer;
  15. }
  16.  
  17. .button1 {background-color: #04AA6D;} /* Green */
  18. .button2 {background-color: #008CBA;} /* Blue */
  19. </style>
  20. </head>
  21. <body>
  22.  
  23. <h1>The button element - Styled with CSS</h1>
  24. <p>Change the background color of a button with the background-color property:</p>
  25.  
  26. <a href="https://sentry.io/answers/">
  27.   <button class="button button1">GDrive</button>
  28. </a>
  29.  
  30. <a href="https://sentry.io/answers/">
  31.   <button class="button button2">GDrive</button>
  32. </a>
  33.  
  34. </body>
  35. </html>
  36.