Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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 lang="en-US">
  <head>
    <title>Survey Form</title>
    <link rel="stylesheet" href="styles.css">
     <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="author" content="Etido Jonah">
  <meta name="description" content="This is a survey form page for user stories as part of for free code camp project">
  </head>
  <body>
  <div id="main">
    <header>
      <h1 id="title">Survey Form</h1>
      <p id="description">User stories survey form</p>
    </header>
     <main>
      <form id="survey-form" method="GET" action="#">
        <div class="bottom-top-padding">
          <div class="label-div">
            <label id="name-label" for="name">Name: </label>
          </div>
           <div class="input-div">
            <input id="name" class="input-text" type="text" placeholder="Enter Name" required>
          </div>
        </div>
         <div class="bottom-top-padding">
          <div class="label-div">
            <label id="email-label" for="email">E-mail: </label>
          </div>
          <div class="input-div">
            <input id="email" class="input-text" type="email" placeholder="Enter E-Mail" required></div>
        </div>
          <div class="bottom-top-padding">
          <div class="label-div">
            <label id="number-label" for="number">Work Experience: </label>
          </div>
          <div class="input-div">
            <input id="number" class="input-text" min="0" max="80" type="number" placeholder="Enter Number">
          </div>
        </div>
         <div class="bottom-top-padding">
          <div class="label-div">
            <label for="dropdown">Are you comfortable in investing in real estate on platform without first investigating properly</label>
          </div>
          <div class="input-div">
            <select id="dropdown" type="dropdown">
        <option>Yes</option>
        <option>No</option>
        <option>Maybe</option>
      </select>
          </div>
        </div>
         <div class="bottom-top-padding">
          <div class="label-div">
            <label>Suggestions to build trusted platform</label>
          </div>
          <div class="input-div">
            <textarea type="text"></textarea>
          </div>
        </div>
         <div class="bottom-top-padding">
          <div class="label-div">
            <label>You are ready to invest in:</label>
          </div>
          <div id="" class="input-div">
            <label for="real-estate"><input id="real-estate" type="checkbox" name="real-estate" value="real-estate">Real Estate</label>
            </br>
            <label for="mutual-funds"><input id="mutual-funds" type="checkbox" name="mutual-funds" value="mutual-funds">Mututal Funds</label>
            </br>
            <label for="crypto"><input id="crypto" type="checkbox" name="crypto" value="crypto">Crypto Currency</label>
            </br>
            <label for="stocks"><input id="stocks" type="checkbox" name="stocks" value="stocks"> Stocks & Bonds</label>
            </br>
          </div>
        </div>
        <div class="bottom-top-padding">
          <div class="label-div">
            <label>Are you ready for further contact</label>
          </div>
          <div class="">
            <label> 
  <input type="radio" name="data" value="yes">Yes 
</label>
            </br>
            <label> 
  <input type="radio" name="data" value="no">No 
</label>
          </div>
        </div>
        <div id="submit-div">
          <button id="submit">Submit</button>
        </div>
      </form>
    </main>
    </div>
    </body>
</html>
              
            
!

CSS

              
                /* display: flex is used*/
@import url(https://fonts.googleapis.com/css?family=Raleway:400,500);

body{
 margin: 0px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #ffb24f;
  font-family: 'Raleway', Helvetica, sans-serif,Arial;
}
#main{
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
   background-color: white;
}
form{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
}
header{
  text-align: center;
  
}
main{
  display: flex;
  display-direction: row;
  justify-content: center;
  padding-bottom: 20px;
}
.bottom-top-padding{
 padding-top: 10px;
 padding-bottom: 10px;
 display: flex;
  
}

.label-div{
  width: 50%;
  text-align: right;
  padding-right: 8px;
}
.input-div{
  width: 50%;
  text-align: left;
  padding-left: 8px;
}
#submit-div{
 display: flex;
  justify-content: center;
  
}
.input-text, select, textarea{
  width: 60%;
  height: 100%;
}
#submit{
  background-color: #ffb24f;
  color: white;
  height: 35px;
  width: 200px;
  border-radius: 8px;
  font-size: 20px; 
  border: 0px;
    font-family: 'Raleway', Helvetica, sans-serif,Arial;
}
              
            
!

JS

              
                
              
            
!
999px

Console