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

              
                <html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Li'l Sebastian Memorial Tour 2018 Survey Form</title>
    <!-- <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> -->
    <link href="https://fonts.googleapis.com/css?family=Dancing+Script|PT+Sans+Narrow" rel="stylesheet">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  </head>
  <body id="main">
    <div>
      <h1 id="title">Li'l Sebastian Memorial Tour 2018</h1>
      <h2>Registration</h2>
    </div>
    <div id="form-div">
      <div id="form-outer">
        <p id="description">Register here to participate in the 2018 Memorial Tour for Li'l Sebastian:</p>
        <form id="survey-form">
        <div>
          <label for="name" id="name-label">Name:
          </label> 
          <input type="text" id="name" name="name" placeholder="Enter your name" required>
        </div>
        <div>
          <label for="email" id="email-label">E-mail:
          </label> 
          <input type="email" id="email" name="email" placeholder="Enter your Email" required>
        </div>
        <div>
          <label for="number" id="number-label">Age:
          </label> 
          <input type="number" id="number" name="age" min="12" max="99" placeholder="Age" required>
        </div>
        <div>
          <label for="dropdown" id="dropdown-label">How many people do you bring:
          </label>
          <select name="dropdown" id="dropdown">
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
          </select>
        </div>
        <div>
          <label for="radio-button" id="radio-button">What kind of present will you bring?
          </label>
          <ul class="present">
            <li class="radio"><input type="radio" id="radio" name="radio" value="Cake"> <label>Cake</label></li>
            <li class="radio"><input type="radio" id="radio" name="radio" value="Flowers"> <label>Flowers</label></li>
            <li class="radio"><input type="radio" id="radio" name="radio" value="Carrots"> <label>Carrots</label></li>
            <li class="radio"><input type="radio" id="radio" name="radio" value="Hay"> <label>Hay</label></li>
            <li class="radio"><input type="radio" id="radio" name="radio" value="Other"> <label>Other</label></li>
            <li><textarea class="radiotext" name="radio" form="survey-form" placeholder="Specify here..."></textarea>
          </ul>
        </div>
        <div>
          <label for="checkbox" id="checkbox">What Li'l Sebastian Fan Rank do you have?
          </label>
          <ul class="fan-rank">
            <li class="checkbox"><input type="checkbox" id="checkbox" name="checkbox" value="none"> <label>None</label></li>
            <li class="checkbox"><input type="checkbox" id="checkbox" name="checkbox" value="Rank 1"> <label>Rank 1 ("One-trick pony")</label></li>
            <li class="checkbox"><input type="checkbox" id="checkbox" name="checkbox" value="Rank 2"> <label>Rank 2 ("In stable condition")</label></li>
            <li class="checkbox"><input type="checkbox" id="checkbox" name="checkbox" value="Rank 3"> <label>Rank 3 ("Better hit the hay!")</label></li>
            <li class="checkbox"><input type="checkbox" id="checkbox" name="checkbox" value="Rank 4"> <label>Rank 4 ("At foal throttle")</label></li>
            <li class="checkbox"><input type="checkbox" id="checkbox" name="checkbox" value="Rank 5"> <label>Rank 5 ("Hold your horses")</label></li>
            <li class="checkbox"><input type="checkbox" id="checkbox" name="checkbox" value="Rank 6"> <label>Rank 6 ("As rare as rocking horse droppings")</label></li>
          </ul>
        </div>
        <div class="comment-div">
          <label for="checkbox" id="checkbox">Any Comments or Suggestions?
          </label>
          <textarea class="comment" name="radio" form="survey-form" placeholder="Please comment here..."></textarea>
        </div>
        <div class="sub-div">
          <button id="submit" class="sub-button" type="submit" form="survey-form" value="Submit">SUBMIT</button>
        </div>
      </form>
      </div>
    </div>
  </body>
              
            
!

CSS

              
                /* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* RESET END */

/* =====Custom Styles===== */
#main {
  background-color: #dbdbdb;
  margin: 20px;
}
  
/* =====Typography===== */
#main {
  font-family: 'PT Sans Narrow', sans-serif;
  font-size: calc(12px + (22 - 12) * ((100vw - 300px) / (1600 - 300)));
  margin: 30px 20px;
}
#main div {
  margin-bottom: 30px;
}
h1 {
  font-size: calc(30px + (70 - 30) * ((100vw - 300px) / (1600 - 300)));
  text-align: center;
}
h2 {
  font-size: calc(25px + (60 - 25) * ((100vw - 300px) / (1600 - 300)));
  text-align: center;
}

/* =====Form Div===== */
#form-div {
  background-color: white;
  border-radius: 5px;
  padding: 20px;
  margin: 0 auto;
}

#description {
  margin-bottom: 30px;
  text-align: center;
}
label {
  display: inline-block;
  width: 40%;
  text-align: right;
}
input {
  width: 25%;
  min-width: 150px;
  height: 20px;
  border-radius: 3px;
  border: 1px solid #919191;
  margin-left: 5px;
  padding: 4px;
}
select {
  width: 25.7%;
  min-width: 157px;
  height: 29px;
  border-radius: 3px;
  border: 1px solid #919191;
  margin-left: 5px;
  padding: 4px;
  vertical-align: top;
}
.radio label, .checkbox label {
  display: initial;
}
.radio input, .checkbox input {
  height: auto;
  min-width: 20px;
  width: auto;
}
.present {
  display: inline-block;
  vertical-align: top;
  width: 25%;
  min-width: 150px;
}
.fan-rank {
  display: inline-block;
  vertical-align: top;
}
.radiotext {
  width: calc(100% - 27.5px);
  height: 80px;
  margin: 5px 0 0 30px;
  border-radius: 3px;
  border: 1px solid #919191;
  padding: 5px;
}
.comment {
  width: 24.5%;
  height: 80px;
  margin-left: 10px;
  border-radius: 3px;
  border: 1px solid #919191;
  vertical-align: top;
  padding: 5px;
}
.sub-div {
  margin: auto;
  width: 100px;
}
.sub-button {
  width: 100px;
  padding: 10px;
  border-radius: 3px;
  border: 1px solid #919191;
  background-color: #726337;
  color: white;
}
.sub-button:hover {
  background-color: #9b864d;
}
              
            
!

JS

              
                
              
            
!
999px

Console