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

              
                <!DOCTYPE html>
<html>
<head>

  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js">
  </script>
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <link href="https://fonts.googleapis.com/css?family=Slabo+27px" rel="stylesheet">
  <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
  <link href="C:\Users\WOJTEK\Desktop\formcss.css" rel="stylesheet" type="text/css">
  <title>survey form</title>
</head>
<body>
  <h1 id="title">Skatepark Survey</h1>
  <p id="description">What would you like to add to our Skatepark</p>
  <div class="container">
    <form action="" autocomplete="on" id="survey-form" method="post" name="survey-form">
      <div class="all">
        <label class="" for="name" id="name-label">Name:</label> <input id="name" placeholder="Enter your name" required="" type="text">
      </div>
      <div class="all">
        <label class="" for="email" id="email-label">Email:</label> <input autocomplete="false" id="email" name="email" placeholder="Enter your email" required="" type="email">
      </div>
      <div class="all">
        <label class="" for="age" id="number-label">Age:</label> <input id="number" max="125" min="1" placeholder="Age" required="" type="number">
      </div>
      <p class="question">Gender:
      <div class="all">
        <label for="male">Male</label> <input checked id="male" name="gender" type="radio" value="male"><br>
        <label for="female">Female</label> <input id="female" name="gender" type="radio" value="female"><br>
        <label for="other">Other</label> <input id="other" name="gender" type="radio" value="other">
      </div>
      <p class="question">What sports do You like ?</p>
      <div>
        <input id="skateboard" type="checkbox" value="skateboard"> <label for="skateboard">Skateboard</label>
      </div>
      <div>
        <input id="inline" type="checkbox" value="inline"> <label for="inline">Inline</label>
      </div>
      <div>
        <input id="bmx" type="checkbox" value="bmx"> <label for="bmx">Bmx</label>
      </div>
      <div>
        <input id="scooter" type="checkbox" value="scooter"> <label for="scooter">Scooter</label>
      </div>
      <div>
        <input id="mtb" type="checkbox" value="mtb"> <label for="mtb">MTB</label>
      </div>
      <div class="all">
        <label for="obstacle" id="obstacle-label">What would you like to add to our Skatepark</label> <select id="dropdown">
          <option disabled selected value="">
            Select an option
          </option>
          <option>
            Grindbox
          </option>
          <option>
            halfpipe
          </option>
          <option>
            foampit
          </option>
          <option>
            pumptrack
          </option>
          <option>
            miniramp
          </option>
        </select>
      </div>
      <div class="all">
        <label class="comment" for="comment" id="comment-label">Any comments or suggestion ?</label> 
        <textarea id="comment" placeholder="Add your comments" rows="5"></textarea>
      </div>
      <div class="all">
        <button id="submit">Submit</button>
      </div>
    </form>
  </div>
</body>
</html>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
  }
  body {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
  }
  #description {
    font-family: 'Slabo 27px', serif;
    font-size: 40px;
    line-height: 1;
    text-align: center;
    letter-spacing: 3px;
  }
  input[type=text], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
  }
  input[type=number] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
  }
  input[type=email] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
  }
  input[type=radio] {
    float: left;
    margin: 18px 5px 0 0;
  }
input[type=checkbox] {
    float: left;
    margin: 18px 5px 0 0;
  }
  label {
    padding: 12px 12px 12px 0;
    display: inline-block;
    margin: 0px;
  }
  button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    margin-top: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
  }
  .container {
    border-radius: 5px;
    background-color: #E5E5E5;
    border: solid #ccc;
    padding: 20px 20px 60px 20px;
  }
p {
  margin: 10px;
}
.question {
  margin: 15px 0 10px 0; 
}
  @media screen and (max-width: 600px) {
    .container, .all, input[type=submit], #title {
      width: 100%;
      margin-top: 0;
    }
    #description {
      font-size: 25px;
      text-align: center;
    }
  }
              
            
!

JS

              
                
              
            
!
999px

Console