HTMLify

Buttons
Views: 185 | Author: cody
<!DOCTYPE html>
<html>

<head>
  <style>
    body {
      font-family: 'Arial', sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      margin: 0;
      background-color: #f4f4f4;
    }

    .button-container {
      text-align: center;
    }

    .button {
      display: inline-block;
      padding: 10px 20px;
      margin: 10px;
      font-size: 1em;
      text-align: center;
      text-decoration: none;
      border-radius: 5px;
      transition: background-color 0.3s ease, color 0.3s ease;
      cursor: pointer;
    }

    .primary-button {
      background-color: #3498db;
      color: #fff;
      border: 2px solid #3498db;
    }

    .secondary-button {
      background-color: #fff;
      color: #3498db;
      border: 2px solid #3498db;
    }

    .button:hover {
      background-color: #2980b9;
      color: #fff;
    }
  </style>
</head>

<body>

  <div class="button-container">
    <a href="#" class="button primary-button">Primary Button</a>
    <a href="#" class="button secondary-button">Secondary Button</a>
  </div>

</body>

</html>

Comments