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 includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <div class="container">
  <h1 id="title"><strong>Who is the <span>worst</span> <br><em>WoT</em> character???</strong></h1>
  <p id="description">Anyone who answers wrong will face the death penalty :)</p>
  <form id="survey-form">
    <div class="form-group">
      <label id="name-label">Name</label>
      <input id="name" type="text" name="name" class="form-control" placeholder="Please enter your name" required>
    </div>
    <div class="form-group">
      <label id="email-label">Email</label>
      <input id="email" type="email" name="email" class="form-control" placeholder="Please enter your email" required>
    </div>
    <div class="form-group">
      <label id="number-label">Age (optional)</label>
      <input id="number" type="number" min="8" max="125" name="number" class="form-control" placeholder="Please enter your age" required>
    </div>
    <div class="form-group">
      <p id="selector1">How much of the Wheel of Time have you read?</p>
      <select id="dropdown" name="role" class="form-control" required>
        <option disabled selected value>Select an option</option>
        <option>None</option>
        <option>Some</option>
        <option>All of it!</option>
      </select>
    </div>
    <div class="form-group">
      <p id="radio">Are you mentally sound?</p>
      <label>
        <input name="mental" value="marbles" type="radio" class="radios">I have at least 4 marbles
      </label>
      <label>
        <input name="mental" value="yesint" type="radio" class="radios">yesint
      </label>
      <label>
        <input name="mental" value="ehh" type="radio" class="radios">ehh
      </label>
    </div>
    <div class="form-group">
      <p id="checkbox">Who is the worst character in the Wheel of Time? (choose carefully)</p>
      <label>
        <input name="worst" value="n1" class="checkboxes" type="checkbox">
        Nynaeve
      </label>
      <label>
        <input name="worst" value="n2" class="checkboxes" type="checkbox">
        Nynaeve
      </label>
      <label>
        <input name="worst" value="n3" class="checkboxes" type="checkbox">
        Nynaeve
      </label>
      <label>
        <input name="worst" value="n4" class="checkboxes" type="checkbox">
        Nynaeve
      </label>
      <label>
        <input name="worst" value="n5" class="checkboxes" type="checkbox">
        Nynaeve
      </label>
      <label>
        <input name="worst" value="n6" class="checkboxes" type="checkbox">
        Nynaeve
      </label>
      <label>
        <input name="worst" value="n7" class="checkboxes" type="checkbox">
        Nynaeve
      </label>
      <label>
        <input name="worst" value="n8" class="checkboxes" type="checkbox">
        Nynaeve
      </label>
    </div>
    <div class="form-group">
      <p>Please provide your reasoning</p>
      <textarea id="textarea" name="reasoning" placeholder="Please provide your reasoning here...">
      </textarea>
    </div>
    <div class="form-group">
      <button type="submit" id="submit">Submit</button>
    </div>
  </form>
</div>
              
            
!

CSS

              
                body {
  font-family: "Ubuntu", sans-serif;
  color: white;
  font-size: 10px;
  /*
  background: linear-gradient(
    35deg,
    rgba(167, 85, 222, 1) 0%,
    rgba(86, 209, 177, 1) 50%,
    rgba(102, 69, 252, 1) 100%
  );
  */
  background: linear-gradient(235deg, #ffffff 0%, #000f25 100%),
    linear-gradient(180deg, #6100ff 0%, #000000 100%),
    linear-gradient(
      235deg,
      #ffa3ac 0%,
      #ffa3ac 40%,
      #00043c calc(40% + 1px),
      #00043c 60%,
      #005d6c calc(60% + 1px),
      #005d6c 70%,
      #00c9b1 calc(70% + 1px),
      #00c9b1 100%
    ),
    linear-gradient(
      125deg,
      #ffa3ac 0%,
      #ffa3ac 40%,
      #00043c calc(40% + 1px),
      #00043c 60%,
      #005d6c calc(60% + 1px),
      #005d6c 70%,
      #00c9b1 calc(70% + 1px),
      #00c9b1 100%
    );
  background-blend-mode: soft-light, screen, darken, normal;
  background-size: auto;
  background-repeat: no-repeat;
}

span {
  text-decoration-line: underline;
  text-decoration-style: "solid";
  text-decoration-color: #fff;
  text-decoration-thickness: 10px;
}

#title {
  font-size: 6rem;
  text-align: center;
  margin: 50px auto 0px;
  font-family: "Roboto", sans-serif;
}

#description {
  font-size: 1.5rem;
  font-style: italic;
  text-align: center;
  font-family: "Roboto", sans-serif;
}

p {
  margin: 0px auto;
  font-size: 1.2rem;
}

#survey-form {
  max-width: 750px;
  margin: 20px auto;
}

.form-group {
  margin: 0 auto 10px auto;
  padding: 0.25rem;
}

.form-control {
  width: 96.7%;
  height: 2.375rem;
  font-size: 1.1rem;
  color: #fff;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 0.25rem;
}

label {
  display: block;
  font-size: 1.2rem;
  font-family: ubuntu;
}

#dropdown {
  width: 97.6%;
  height: 43px;
  background-color: #000;
}

#radio,
#checkbox {
  margin-bottom: 10px;
}

.radios,
.checkboxes {
  min-height: 1.2rem;
  min-width: 1.2rem;
}

#textarea {
  background: transparent;
  border: 2px solid white;
  border-radius: 0.25rem;
  width: 96.7%;
  font-family: "Ubuntu", sans-serif;
  color: white;
  font-size: 1.1rem;
}

#submit {
  margin: 10px auto;
  padding: 10px;
  background: white;
  font-family: "Ubuntu", sans-serif;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

#submit:hover {
  animation-name: size;
  animation-duration: 300ms;
  animation-fill-mode: forwards;
}

@keyframes size {
  100% {
    transform: scale(1.1);
  }
}

@media (max-width: 1000px) {
  #title {
    font-size: 4rem;
  }
  #description {
    font-size: 1rem;
  }
  #survey-form {
    max-width: 450px;
  }
}

@media (max-width: 565px) {
  #title {
    font-size: 2.5rem;
  }
  #description {
    font-size: 0.9rem;
  }
  #survey-form {
    max-width: 300px;
  }
}

              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place.

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments.

              
            
!
999px

Console