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

              
                <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Survey</title>
  <link rel='stylesheet' href='survey.css'>
</head>

<body>
  <div id='main'>
    <figure id='img-caption'>
      <div id='img-div'>
      </div>
    </figure>
  </div>
  <h1 id='title'> Survey </h1>
  <p id='description'> A Quick Survey on how Awesome you are... </p>
  <form id='survey-form'>
    <div class='form-group'>
      <label for='name' id='name-label'>Name</label>
      <input id='name' type='text' placeholder='Enter Name' required='required'><br><br>
      <label for='email' id='email-label'>Email</label>
      <input id='email' type='email' placeholder='Email Address' required='required'><br><br>
      <label for='number' id='number-label'> Number </label>
      <input id='number' type='number' min='1' max='7' placeholder='Phone-Number' required='required'><br><br>
      <label for='dropdown'> What best describes how awesome you are? </label>
      <select id='dropdown'>
        <option disabled selected value>Please select an option</option><br><br>
        <option value='Super Awesome'>Super Awesome</option>
        <option value='Kinda Awesome'>Kinda Awesome</option>
        <option value='Awesome'>Awesome</option>
        <option value='Not so Awesome'>Not so Awesome</option><br><br>
      </select>
      <div class='gender-selection'>
        <label id='gender'>Please indicate your Gender</label><br>
        <input type='radio' id='male' name='gender' value='male'>
        <label for='male'>Male</label><br>
        <input type="radio" id="female" name="gender" value="female">
        <label for="female">Female</label><br>
        <input type="radio" id="other" name="gender" value="other">
        <label for="other">Other</label>
      </div>
      <div class='checkboxes'><br>
        <label for='checkboxes'>How likely are you to tell all your friends about how amazing this survey is?</label><br>
        <input type='checkbox' id='extremely' name='extremely' value='extremely'>
        <label for='text'> Extremely Likely</label><br>
        <input type='checkbox' id='very-extremely' name='very extremely' value='very extremely'>
        <label for='text'>Very Extremely Likely</label><br>
        <input type='checkbox' id='Super-extremely' name='Super extremely' value='Super extremely'>
        <label for='text'>Super Extremely Likely</label><br>
        <input type='checkbox' id='nah' name='nah' value='nah'>
        <label for='text'>Nah, this is basic AF</label><br>
        <input type='checkbox' id='stinks' name='stink' value='stinks'>
        <label for='text'>This website stinks!!!</label><br><br>
        <div class='text-area'>
          <label for='comments'>If you have any other suggestions, please leave them below</label><br><br>
          <textarea id='comments' name='comments'></textarea><br>
          <button id='submit'>Submit</button>
        </div>
      </div>
    </div>
  </form>
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>

</html>
              
            
!

CSS

              
                * {
  text-align: left;
  font-family: Sans-serif;
  box-sizing: border-box;
  line-height: 1.6;
}

#title,
#description {
  text-transform: uppercase;
  margin-bottom: 30px;
  text-align: center;
  height: auto;
  border-radius: 10px;
  font-style: bold;
}
body {
  font-size: 20px;
  padding: 20px;
  height: 100%;
  opacity: .9;
  background: url("https://res.cloudinary.com/de9jjfnkh/image/upload/v1595805697/aleks-dorohovich-nJdwUHmaY8A-unsplash_ekpt7f.jpg");
/*   background-blend-mode: lighten; */
}

.form-group {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  font-family: "Lucida Grande", Helvetica, sans-serif;
  position: relative;
  padding: 12px 8px 12px 40px;
  background: #f3f1f1e7;
  font-size: 18px;
}

.gender-selection {
  position: relative;
  display: flex;
  padding: 12px;
  font-family: "Lucida Grande", Helvetica, sans-serif;
}

.checkboxes {
  padding: 18px;
  font-size: 18px;
}

textarea {
  border: solid;
  padding: 100px;
  width: 100%;
  border-radius: 3px;
}

textarea:hover {
  transition: ease-in 1s;
  opacity: 5;
}
button {
  font-size: 25px;
  border-radius: 3px;
}
button:hover {
  transition: ease-in 1s;
}

              
            
!

JS

              
                
              
            
!
999px

Console