Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<div class="box">
  <header>
    <h1 id="title">Team Building Survey Form</h1>
    <p id="description">
      Help us make the event better
    </p>
  </header>
  <form id="survey-form">
    <div>
      <label id="name-label" for="name"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"
          fill-rule="evenodd" clip-rule="evenodd" class="icons">
          <path
            d="M12 0c-5.083 0-8.465 4.949-3.733 13.678 1.596 2.945-1.725 3.641-5.09 4.418-3.073.709-3.187 2.235-3.177 4.904l.004 1h23.99l.004-.969c.012-2.688-.093-4.223-3.177-4.935-3.438-.794-6.639-1.49-5.09-4.418 4.719-8.912 1.251-13.678-3.731-13.678m0 1c1.89 0 3.39.764 4.225 2.15 1.354 2.251.866 5.824-1.377 10.06-.577 1.092-.673 2.078-.283 2.932.937 2.049 4.758 2.632 6.032 2.928 2.303.534 2.412 1.313 2.401 3.93h-21.998c-.01-2.615.09-3.396 2.401-3.93 1.157-.266 5.138-.919 6.049-2.94.387-.858.284-1.843-.304-2.929-2.231-4.115-2.744-7.764-1.405-10.012.84-1.412 2.353-2.189 4.259-2.189" />
          </svg></label>
      <input type="text" name="name" id="name" class="border" placeholder="Enter your name" required />
    </div>
    <div>
      <label id="number-label" for="number"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"
          fill-rule="evenodd" clip-rule="evenodd" class="icons">
          <path
            d="M24 22h-24v-20h24v20zm-1-19h-22v18h22v-18zm-4 13v1h-4v-1h4zm-6.002 1h-10.997l-.001-.914c-.004-1.05-.007-2.136 1.711-2.533.789-.182 1.753-.404 1.892-.709.048-.108-.04-.301-.098-.407-1.103-2.036-1.305-3.838-.567-5.078.514-.863 1.448-1.359 2.562-1.359 1.105 0 2.033.488 2.545 1.339.737 1.224.542 3.033-.548 5.095-.057.106-.144.301-.095.41.14.305 1.118.531 1.83.696 1.779.41 1.773 1.503 1.767 2.56l-.001.9zm-9.998-1h8.999c.003-1.014-.055-1.27-.936-1.473-1.171-.27-2.226-.514-2.57-1.267-.174-.381-.134-.816.119-1.294.921-1.739 1.125-3.199.576-4.111-.332-.551-.931-.855-1.688-.855-.764 0-1.369.31-1.703.871-.542.91-.328 2.401.587 4.09.259.476.303.912.13 1.295-.342.757-1.387.997-2.493 1.252-.966.222-1.022.478-1.021 1.492zm18-3v1h-6v-1h6zm0-3v1h-6v-1h6zm0-3v1h-6v-1h6z" />
          </svg></label>
      <input type="number" name="id" id="number" min="0" max="9" class="border" placeholder="Enter your ID" />
    </div>
    <div>
      <label id="email-label" for="email"><svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"
          fill-rule="evenodd" clip-rule="evenodd"  class="icons">
          <path
            d="M24 21h-24v-18h24v18zm-23-16.477v15.477h22v-15.477l-10.999 10-11.001-10zm21.089-.523h-20.176l10.088 9.171 10.088-9.171z" />
          </svg></label>
      <input type="email" name="email" id="email" class="border" placeholder="Enter your Email" required />
    </div>
    <div>
      <p class="font-item">Let's choose a convenient date</p>
      <label class="r-c" >
        <input name="date" value="february22" type="radio" class="input-radio" checked />February 22</label>
      <label class="r-c">
        <input name="date" value="february29" type="radio" class="input-radio" />February 29</label>

      <label class="r-c"><input name="date" value="march7" type="radio" class="input-radio" />March 7</label>
    </div>

    <div>
      <p class="font-item">
        What type of activity do you prefer?
      </p>
      <label class="r-c"><input name="prefer" value="team-sports" type="checkbox" class="input-checkbox" />Team
        sports</label>
      <label class="r-c">
        <input name="prefer" value="quest-games" type="checkbox" class="input-checkbox" />Quest games</label>
      <label class="r-c"><input name="prefer" value="smart-quiz" type="checkbox" class="input-checkbox" />Smart
        quiz</label>
    </div>
    <div>
      <p class="font-item">
        Vote for the party-place!
      </p><label>
      <select id="dropdown" class="border" required>
        <option disabled selected value>Choose the restaurant</option>
        <option value="gusi">Gusi</option>
        <option value="bochkari">Bochkari</option>
        <option value="bread-and-Nino">Bread and Nino</option>
      </select></label>
    </div>

    <div>
      <p class="font-item">Please send us your comments and suggestions</p>
      <label><textarea id="comments" class="input-textarea border" name="comments" placeholder=""></textarea></label>
    </div>

    <div>
      <button type="submit" id="submit" class="submit-button"><a id="submit-text">Submit</a>
      </button>
    </div>
  </form>
</div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Darker+Grotesque|Jua|Fahkwang|verage+Sans|Secular+One&display=swap");

body {
  background: linear-gradient(
      to top,
      rgba(150, 195, 204, 0.5),
      rgba(255, 255, 255, 0.6)
    ),
    url("http://www.fonstola.ru/pic/201310/1920x1200/fonstola.ru-123717.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0;
}
.box {
  width: 92%;
  height: auto;
  padding-top: 30px;
  margin: auto;
font-family: "Fahkwang", sans-serif;
}

@media (min-width: 576px) {
  .box {
    max-width: 535px;
  }
}
@media (min-width: 768px) {
  .box {
    max-width: 715px;
  }
}
header {
  color: #b0205a;
}
#title {

  text-align: center;
  font-size: 27px;
}
#description {

  text-align: center;
  font-size: 15px;
  margin-top: -10px;
}
#survey-form {
  margin: 0 auto 15px auto;
  padding: 25px 5px 15px 5px;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.7),
    rgba(255, 255, 255, 0.6)
  );
  font-family: "Jua", sans-serif;
  font-size: 18px;
  color: #112e6d;
  border-radius: 2%;
  text-align: center;
}
.icons {vertical-align: middle;}
.border {
  border-radius: 3%;
  width: 50%;

  margin-left: 20px;
  padding: 5px;
  font-size: 16px;
  color: #112e6d;
  font-style: italic;
  margin: 10px;
}
#dropdown {
  min-width: 50%;
}
.font-item {
  font-size: 20px;
  font-family: "Fahkwang", sans-serif;
  color: #2b2828;
  margin: 45px 5px 15px 5px;
}
@media (min-width: 1920px) {
  body {
    background: #d9e6e6;
  }
  .box {
    margin-top: 60px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.4)
      ),
     url("http://www.fonstola.ru/pic/201310/1920x1200/fonstola.ru-123717.jpg");
    background-position: center;
    border-radius: 5%;
  }
}
@media (max-width: 500px) {
  #title {
    font-size: 21px;
  }
  #description {
       font-style: italic;
  }
  .font-item {
    margin: 20px 4px 15px 4px;
  }
  .r-c {
    display: flex;
    margin-bottom: 8px;
  }
  #dropdown {
    width: 80%;
  }
}
.input-radio,
.input-checkbox {
  margin-right: 10px;
  margin-left: 15px;
  min-height: 22px;
  min-width: 22px;
}
textarea {
  width: 60%;
  min-height: 80px;
  caret-color: rgb(220, 20, 60);
  box-shadow: inset 2px 2px 5px rgba(154, 147, 140, 0.5),
    1px 1px 5px rgba(255, 255, 255, 1);
  padding: 10px;
  resize: vertical;
}
#submit-text {
  font-size: 14px;
  color: white;
  font-family: "Average Sans", sans-serif;   font-weight: 900; text-transform: uppercase;
}
.submit-button {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(22, 191, 253, 0.8),
    rgba(203, 48, 102, 0.7)
  );
  box-shadow: 4px 2.5px 5px 1.5px white;
  cursor: pointer;
  margin: 12px auto 20px auto;
}
.submit-button:hover {
  background: linear-gradient(190deg, rgb(22, 191, 253), rgb(203, 48, 102));
  box-shadow: 4px 2.5px 5px 1.5px white;
}

              
            
!

JS

              
                
              
            
!
999px

Console