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>
<head>
</head>
<header>
</header>
<body>
  <h1 id="title">Survey Form</h1>
  
    <form action="submit" class="grid-inline" id="survey-form">
      <div id="main">
      <fieldset>      
    <p id="description"> Give us feedback on how to improve Your Money Coach </p>
       <div class="input-group">  
    <label for="name" id="name-label" class="center">Full name:</label>
         <input type="text" name="name" id="name" placeholder="Enter your name"><br>
         </div>
        <div class="input-group">
        <label for="email" id="email-label" class="center"> Email:</label>
          <input type="text" name="email" id="email" placeholder="Enter your email">
        </div><br>
        <div class="input-group">
         <label for="age" id="number-label" class="center">Age:</label><input type="number" name="age" id="number" placeholder="age" min="0" max="115">
          </div>
        <br>
        <div class="input-group">
        <label class="center">How do you feel about your current financial situation?</label>
        <select id="dropdown">
          <option value="Not great">Not great</option>
          <option value="Getting there">Getting there</option>
          <option value="Amazing">Amazing</option>
        </select>
        </div><br><br>
        <div class="input-group">
        <label class="center"> How likely are you to recommend Your Money Coach to a friend?</label>
          <span class="radio-buttons">
           <div> <input type="radio" name="recommend" value="Yes" required><label>Yes</label>
            </div>
            <div>
          <input type="radio" name="recommend" value="No" required><label>No</label>
            </div>
            <div>
          <input type="radio" name="recommend" value="Maybe" required><label>Maybe</label>
            </div>
          </span>
        </div>
        <br><br>
        <div class="input-group">
        <label class="center">What do you like the most about Your Money Coach?</label>
        <select>
          <option value="advice">Advice</option>
          <option value="reminders">Reminders</option>
          <option value="behaviour management">Behaviour management</option>
        </select>
        </div><br><br>
        <div class="input-group">
          <label class="center">How can we improve our service?</label>
        <span class="checkboxes">
        <input type="checkbox" name="improvements" value="Better support"><label>Better support</label><br>
        <input type="checkbox" name="improvements" value="Financial advice"><label>Financial advice</label><br>
        <input type="checkbox" name="improvements" values="More indepth planning"><label>More indepth planning</label>       
          </span>
        </div><br><br>
        <div class="input-group">
        <label class="center">Anything else you can tell us?</label>
        <textarea rows="6" id="textarea" placeholder="Penny for your thoughts?"></textarea>
          </div>
          <br><br>
          
        <button type="submit" form="survey-form" value="submit" id="submit">Submit</button>
        </label>
      </fieldset>
     </div>
    </form>
</body>
<footer>
</footer>
              
            
!

CSS

              
                body {
  background-color: #ffd11a;
  
  
}

#title {
  text-align: center;
  
}

#survey-form {
 display: flex;
  justify-content: center;
  
    
}

.grid-inline {
  display: grid;
  grid-template-rows: 1fr;
}

#main {
  background-color:  #d9d9d9;
  width: 70%;
  height: auto;
  text-align: center;
  border-style: solid;
  border-width: 3px;
  border-radius: 6px;
  
 }


#description {
  
}

.grid-inline .input-group {
  display: grid;
  grid-template-columns: 50% 40%;
}

.inline {
  
}
#name-label {
 
  
}

#name {
  
}

.center {
  display: flex;
  justify-content: flex-end;
  padding-right: 10px;
}

#email {
  
}

#number {
  
}

 


fieldset {
  border: none;
  
}


#dropdown {
  
}

#name-label {
  
}

#email-label {
  
}

#number-label {
  
}

#textarea {
  
  
}
.radio-buttons {
  text-align: left;
 
}

.checkboxes {
  display: inline-block;
  text-align: left;
}
#submit {
  color: white;
  background-color: black;
  border-radius: 5px;
  width: 90px;
  height: 35px;
  font-size: 19px;
  margin-bottom: 20px;
  margin-top:7px;
  
}
              
            
!

JS

              
                
              
            
!
999px

Console