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>

<h1 id="title">School Survey</h1>
<p id="description">We will ask you some Things about your german school to improve for example the hygiene. Input Fields with ° are not required.</p>
<form id="survey-form">
  <main class="grid-container">
    <div class="item1">
      <label id="name-label">Name</label><br>
      <input class="inp" id="name" type="text" placeholder="Enter your name" required> <br>
      <label id="email-label">Email</label><br>
      <input class="inp" id="email" type="email" placeholder="Enter your Email" required> <br>
      <label id="schoolname-label">School Name</label><br>
      <input class="inp" id="schoolname" type="text" placeholder="Enter your school's name" required> <br>
      <label id="number-label">°Age</label><br>
      <input class="inp" id="number" type="number" placeholder="Enter your age" min="6" max="120"> <br>
      <label id="dropdown-label">School Type</label><br>
      <select class="inp" id="dropdown" placeholder="select one">
        <option>Primary School</option>
        <option>Hauptschule</option>
        <option>Realschule</option>
        <option>Gesamtschule</option>
        <option>Gymnasium</option>
        <option>Vocational School</option>
        <option>University</option>
        <option>Private School</option>
        <option>Förderschule</option>
        <option>Sports School</option>
      </select>
    </div>
    <div class="item2">
      <label>What is your job at the school?</label><br>
      <input name="problem" id="rb1" type="radio" value="1"><label for="rb1">Student</label><br>
      <input name="problem" id="rb2" type="radio" value="2"><label for="rb2">Teacher</label><br>
      <input name="problem" id="rb3" type="radio" value="3"><label for="rb3">Administration</label><br>
      <input name="problem" id="rb4" type="radio" value="4"><label for="rb4">Caretaker</label><br>
      <input name="problem" id="rb5" type="radio" value="5"><label for="rb5">Other</label>
    </div>
    <div class="item3">
      <label>What are Problems of the school?</label><br>
      <input name="problem" id="cb1" type="checkbox" value="1"><label for="cb1">Classroom Size</label><br>
      <input name="problem" id="cb2" type="checkbox" value="2"><label for="cb2">Poverty</label><br>
      <input name="problem" id="cb3" type="checkbox" value="3"><label for="cb3">Family Factors</label><br>
      <input name="problem" id="cb4" type="checkbox" value="4"><label for="cb4">Technology</label><br>
      <input name="problem" id="cb5" type="checkbox" value="5"><label for="cb5">Bullying</label><br>
      <input name="problem" id="cb6" type="checkbox" value="6"><label for="cb6">Student Attitude and Behaviour</label><br>
      <input name="problem" id="cb7" type="checkbox" value="7"><label for="cb7">Parent Involvement</label><br>
      <input name="problem" id="cb8" type="checkbox" value="8"><label for="cb8">No Student Left Behind</label><br>
      <input name="problem" id="cb9" type="checkbox" value="9"><label for="cb9">Student Health</label><br>
      <input name="problem" id="cb10" type="checkbox" value="10"><label for="cb10">Funding</label><br>
      <input name="problem" id="cb11" type="checkbox" value="11"><label for="cb11">Hygiene</label><br>
      <input name="problem" id="cb12" type="checkbox" value="12"><label for="cb12">Other:</label><br>
      <textarea class="inp"></textarea><br>
      <input class="inp" id="submit" type="submit">
    </div>
  </main>
</form>
<footer>
  <p> &copy Camoflasche 2020 </p><a target="_blank" href="https://www.instagram.com/camoflasche/">instagram </a> <br> <br><a target="_blank" href="https://www.freecodecamp.org/camoflasche">freeCodeCamp</a>
</footer>
              
            
!

CSS

              
                body {
  font-family: Helvetica;
  background-image: linear-gradient(270deg, #fffbd5 0%, #b20a2c 100%);
}
input {
  text-align: left;
}
main {
  display: grid;
  grid-gap: 5%;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  justify-items: start;
  max-width: 100%;
  height: auto;
  background-image: linear-gradient(90deg, #fffbd5 0%, #b20a2c 100%);
  border-radius: 5px;
  padding: 5px;
}
.inp {
  width: 100%;
  height: 2em;
  border-radius: 10px;
  box-shadow: 10px 7px 5px -5px #911;
  margin: 0 0 10px 0;
}
#submit {
  width: 62px;
}
textarea {
  height: 5em !important;
}
footer {
  margin: 10vh;
  text-align: center;
}
a {
  text-decoration: none;
  color: rgb(0, 256, 180);
  }
              
            
!

JS

              
                
              
            
!
999px

Console