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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<div class="container">
  <header class="header">
    <h1 id="title" class="text-center">Yearly Career Satisfaction Survey</h1>
    <p id="description" class="description text-center">
      We are conducting a survey to ensure that our employees have a voice.
    </p>

  </header>
  <form id="survey-form">
    <div class="form-group">
      <label id="name-label" for="name">Name</label>
      <input type="text" name="name" id="name" class="form-control" placeholder="Enter your name" required />
    </div>
    <div class="form-group">
      <label id="email-label" for="email">Email</label>
      <input type="email" name="email" id="email" class="form-control" placeholder="Enter your Email" required />
    </div>
    <div class="form-group">
      <label id="number-label" for="number">Age<span class="clue">(optional)</span></label>
      <input type="number" name="age" id="number" min="10" max="99" class="form-control" placeholder="Age" />
    </div>
    <div class="form-group">
      <p>Which option best describes your current role?</p>
      <select id="dropdown" name="role" class="form-control" required>
        <option disabled selected value>Select current role</option>
        <option value="FullTime">Full Time Employee</option>
        <option value="PartTime">Part Time Employee</option>
        <option value="PerDiem">Per Diem</option>
        <option value="Contracted">Contracted</option>
      </select>
    </div>

    <div>
      <label>
        <p>Current Career Satisifaction</strong>
        </p>
        <div class="containerL">
          <input name="user-recommend" value="Very Satisfied" type="radio" class="input-radio" ul style="list-style: none;">Very Satisfied
      </label>
      <label>
        <input name="user-recommend" value="Mostly Satisfied" type="radio" class="input-radio" ul style="list-style: none;" />Mostly Satisfied</label>
      <label>
        <input name="user-recommend" value="Neutral" type="radio" class="input-radio" ul style="list-style: none;" />Neutral</label>
      <label>
        <input name="user-recommend" value="Mostly Dissatisfied" type="radio" class="input-radio" ul style="list-style: none;" />Mostly Dissatisfied</label>
      <label>
        <input name="user-recommend" value="Very Dissatisfied" type="radio" class="input-radio" ul style="list-style: none;" />Very Dissatisfied</label>
    </div>
    <br>
    <div class="form-group">
      <p>
        How can we help you grow your career?
      </p>
      <select id="most-like" name="mostLike" class="form-control" required>
        <option disabled selected value>Select an option</option>
        <option value="more_career_growth">More Career Growth</option>
        <option value="team_outings">Team Outings</option>
        <option value="community_involvement">Community Involvement</option>
        <option value="team_building">Team Building</option>
        <option value="volunteer_opportunities">Volunteer Opportunities</option>
      </select>
    </div>

    <div class="form-group">
      <p>Any comments or suggestions?</p>
      <textarea id="comments" class="input-textarea" name="comment" placeholder="Enter your comment here..."></textarea>
    </div>

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

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Shadows Into Light", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-white);
  margin: 0;
}

/* mobile friendly alternative to using background-attachment: fixed */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background: var(--color-black);
  background-image: url(https://previews.123rf.com/images/everythingpossible/everythingpossible1809/everythingpossible180900148/107980030-coding-software-developer-work-with-ar-new-design-dashboard-computer-icons-of-scrum-agile-developmen.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

h1 {
  text-align: center;
  font-weight: 400;
  line-height: 1.2;
}

p {
  font-size: 1.725rem;
  text-alignment: center;
}

h2,
p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

label {
  display: center;
  align-content: center;
  font-size: 1.525rem;
  margin-bottom: 0.5rem;
}

input,
button,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  border: none;
}

.container {
  display: center;
  width: 100%;
  margin: 3.125rem auto 0 auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

.header {
  padding: 0 0.625rem;
  margin-bottom: 1.875rem;
}

.description {
  font-style: strong;
  font-weight: 300;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);
}

.clue {
  margin-left: 0.25rem;
  font-size: 1.25rem;
  color: dark-grey;
}

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

/* form */

form {
  background: var(--color-white);
  padding: 2.5rem 0.625rem;
  border-radius: 0.25rem;
  opacity: 1;
}

@media (min-width: 480px) {
  form {
    padding: 2.5rem;
  }
}

.form-group {
  display: relative;
  text-align: center;
  margin: 0 auto 2.25rem auto;
  padding: 0.25rem;
}

.form-control {
  display: block;
  width: 100%;
  height: 2.375rem;
  padding: 0.375rem 0.75rem;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  display: center;
  margin: auto;
  border-color: black;
  outline: 3;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-radio,
.input-checkbox {
  display: block;
  text-align: relative;
  margin-right: 0.625rem;
  min-height: 1.25rem;
  min-width: 1.25rem;
}

.input-textarea {
  min-height: 75px;
  max-height: 75px;
  width: 75%;
  padding: 0.625rem;
  resize: auto;
}

.submit-button {
  display: center;
  width: 25%;
  padding: 0.75rem;
  background: var(--color-orange);
  background: yellow;
  color: inherit;
  border-radius: 2px;
}

              
            
!

JS

              
                
              
            
!
999px

Console