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>

<!-- Begin Body -->

<body>
  <div>

    <!-- Begin nav -->
    <nav>
      <ul>
        <li><a href="https://www.misterrogers.org/" alt="Mr. Rogers's homepage">Home</a></li>
        <li><a href="https://www.misterrogers.org/about-fred-rogers/" alt="Mr. Rogers's about page">About Fred</a></li>
        <li><a href="https://www.psychologytoday.com/us" alt="Resources for counseling and therapy">Solutions</a></li>
        <li><a href="https://www.sandiegospiritualdirection.org/" alt="Spiritual directors in San Diego, CA">Support</a></li>
      </ul>
    </nav>

    <header class="header">
      <h1 id="title"> Mr. Rogers Neighborhood Survey Form</h1>
      <p id="description">A survey about improving Mr. Rogers Neighborhood</p>

      <!-- Figure 1 -->
      <figure><img src="https://aentcdn.azureedge.net/graphics/items/sdimages/c/500/7/2/6/3/3913627.jpg?ae=1110858141" id="rogers1" alt="Mr. Rogers Neighborhood">
      </figure>

      <!-- Begin form -->
      <form name="Contact Form" method="post" action="" id="survey-form">
        <fieldset>
          <legend>Contact the Neighborhood</legend>

          <!-- Name -->
          <div class="form-group">
            <label id="name-label" for="name" maxlength="20">Name *</script></label>
            <input type="text" name="name" id="name" class="form-control" placeholder="Enter your name" required="">
          </div>

          <!-- Email -->
          <div class="form-group">
            <label id="email-label" for="email" maxlength="25">Email *</label>
            <input type="email" name="email" id="email" class="form-control" placeholder="Enter your email" required="">
          </div>

          <!-- Number -->
          <div class="form-group">
            <label id="number-label" for="IQ">IQ<span class="clue">(optional)</span></label>
            <input type="number" min="90" max="140" name="IQ" id="number" min="90" max="110" class="form-control" placeholder="#">
          </div>

          <!-- Dropdown -->
          <div class="form-group">
            <label for="dropdown">What is your Meyer Briggs personality proflie? *</label>
            <select id="dropdown" name="profile" class="form-control" required>
              <option disabled selected value>-- Select your MBTI --</option>
              <option value="ISTJ">ISTJ - The Inspector</option>
              <option value="ISTP">ISTP - The Crafter</option>
              <option value="ISFJ">ISFJ - The Protector</option>
              <option value="ISFP">ISFP - The Artist</option>
              <option value="INFJ">INFJ - The Advocate</option>
              <option value="INFP">INFP - The Mediator</option>
              <option value="INTJ">INTJ - The Architect</option>
              <option value="INTP">INTP - The Thinker</option>
              <option value="ESTP">ESTP - The Persuader</option>
              <option value="ESTJ">ESTJ - The Director</option>
              <option value="ESFP">ESFP - The Performer</option>
              <option value="ESFJ">ESFJ - The Caregiver</option>
              <option value="ENFP">ENFP - The Champion</option>
              <option value="ENFJ">ENFJ - The Giver</option>
              <option value="ENTP">ENTP - The Debater</option>
              <option value="ENTJ">ENTJ - The Commander</option>
            </select>
          </div>

          <!-- Radio -->
          <div class="form-group">
            <p>Would you like to take the MBTI personality test yourself?</p>
            <label for="Positively"><input type="radio" name="likelihood" value="Positively" id="Positively" class="input-radio" checked>Positively</label>

            <label for="Possibly"><input type="radio" name="likelihood" value="Possibly" id="Possibly" class="input-radio">Possibly</label>

            <label for="Never"><input type="radio" name="likelihood" value="Never" id="Never" class="input-radio">Never</label>

          </div>

          <!-- Checkbox -->
          <div class="form-group">
            <p>Why do you want to live in Mr. Rogers neighborhood? (Check all which apply)</p>

            <label for="more-space"><input type="checkbox" name="reason" value="more-space" id="more-space" class="input-checkbox">More space</label>

            <label for="price-per-square-foot"><input type="checkbox" name="reason" value="price-per-square-foot" id="price-per-square-foot" class="input-checkbox">Better price per square foot</label>

            <label for="less-crowded"><input type="checkbox" name="reason" value="less-crowded" id="less-crowded" class="input-checkbox">Less crowded</label>

            <label for="more-privacy"><input type="checkbox" name="reason" value="more-privacy" id="more-privacy" class="input-checkbox">More privacy</label>

            <label for="amenities"><input type="checkbox" name="reason" value="amenities" id="amenities" class="input-checkbox">Amenities are closer in the area</label>

            <label for="more-nature"><input type="checkbox" name="reason" value="more-nature" id="more-nature" class="input-checkbox">More nature to enjoy</label>

            <label for="safety"><input type="checkbox" name="reason" value="safety" id="saftey" class="input-checkbox">Safety</label>

            <label for="more-voice"><input type="checkbox" name="reason" value="more-voice" id="more-voice" class="input-checkbox">More of a voice in local government and community development</label>

            <label for="prestige"><input type="checkbox" name="reason" value="prestige" id="prestige" class="input-checkbox">Presitge</label>

          </div>

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

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

          <!-- End form -->
        </fieldset>
      </form>
      <!-- Footer -->
      <footer>Copyright &copy; Matthew Shane Rogers - All Rights Reserved</footer>
  </div>
  <!-- End Body -->
</body>
              
            
!

CSS

              
                
/* Font Syle */
@import url('<link href="https://fonts.googleapis.com/css?family=Quicksand&display=swap" rel="stylesheet">');

/* Form Background Syle */
:root {
  --color-darkblue-alpha: rgba(27, 27, 50, 0.8)
}

/* Body Syle */
body {
  display: flex;
  flex-flow: <column> || <wrap>;
  justify-content: center;
  align-items: baseline;
  align-content: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: white;
  margin: 3.125rem auto 0 auto;
  background: linear-gradient(100deg, rgba(58,58,158,0.8), rgba(136,136,206,0.7)), url(https://m.media-amazon.com/images/I/91cI-eXxQaL._SS500_.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Navigation Syle */
nav {
  display: flex;
  justify-content: center;
  padding-bottom: 10px;
}

nav ul li a {
  color: orange;
  font-size 1.2rem;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  color: white;
}

/* Header Style */
.header {
  padding: 0 0.625rem;
  margin-bottom: 1.875;
  text-align: center;
}

/* Description */
#description {
  font-style: italic;
  font-weight: 200;
}

/* Generic Styles */
h1 {
  font-weight: 400;
  line-height: 1.2;
}

p {
  display: flex;
  justify-content: center;
  font-size: 1.125rem;
}

h1, p {
  margin: 0 0 0.5rem 0;
}

ul {
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style-type: none;
  align-items: center;
}

li{
  float: left;
  padding: 10px 10px;
}

figure {
  display: flex;
  flex-wrap: column;
  justify-content: center;
}

/* Form Syle */
form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: ;
  align-items: flex-start;
  align-content: space-around;
  margin: 10px 15%;
  background: var(--color-darkblue-alpha);
  padding:  2rem 4rem 3rem 2rem;
  border-radius: 0.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: space-around;
  margin: 0 auto 1.15rem 0;
  padding: 0.25rem;
}

fieldset {
  border-width: 0; 
}

.form-control {
  padding: 0.375rem 0.75rem;
  border: 1px solid;
  border-radius:0 .25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: orange;
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(0, 123, 255, 0.25);
}

label {
  display: flex;
  font-size: 1.125rem;
  margin: .5rem 0 0 0;
}

input, button, select, textarea {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  align-content: flex-start;
  margin: .25rem 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.input-radio, .input-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: flex-start;
  margin-right: 0.625rem;
  min-heigh: 1.25rem;
  min-width: 1.25rem;
}

/* Text Box Style */
.input-textarea {
  display: flex;
  
  margin: .25rem auto; 
  padding: 0.625rem;

}

/* Button Style */
.submit-button {
  display: flex;
  padding: 0.75rem;
  background: orange;
  color: inherit;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}

/* Footer Style */
footer {
  display: flex;
  justify-content: center;
}

/* Responsive Web Design Syle */

@media only screen and (max-width: 700px) {
  form {
    margin: 0 auto;
    width: auto;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console