Styling basics 1

by elishamutang

HTML

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <title>Styling basics: Task 1</title>
    <style>
      * {
        box-sizing: border-box;
      }

      body {
        background-color: #fff;
        color: #333;
        font: 1em / 1.4 Helvetica Neue, Helvetica, Arial, sans-serif;
        padding: 1em;
        margin: 0;
        width: 500px;
      }
      
      input,
      select,
      button {
        width: 200px;
        padding: 0;
        margin: 5px 0;
      }
      
      input:focus,
      select:focus,
      button:focus {
        outline: none;
        border: 1px solid lightblue;
        box-shadow: 0 0 10px #719ECE;
      }
      
      form {
        position: relative;
        background: lightgrey;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      
      label {
        width: 150px;
        display: inline-block;
        font-weight: bold;
      }
      
      ul {
        list-style: none;
      }
      
      button {
        width: 100%;
        margin-top: 10px;
        padding: 3px;
        font-size: 15px;
        cursor: pointer;
      }
      
      button:hover,
      button:focus {
        outline: none;
        border: 1px solid lightblue;
        box-shadow: 0 0 10px #719ECE;
        background: lightblue;
        color: #fff;
      }
      

    </style>
  </head>

  <body>
    <form>
      <h2>Edit your preferences</h2>
      <ul>
        <li>
          <label for="e-mail">Email:</label>
          <input type="email" id="e-mail" name="e-mail">
        </li>
        <li>
          <label for="website">Website:</label>
          <input type="url" id="website" name="website">
        </li>
        <li>
          <label for="phone">Phone number:</label>
          <input type="tel" id="phone" name="phone">
        </li>
        <li>
          <label for="food">Favorite food:</label>
          <select name="food" id="food">
       ...