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

              
                <style>
  
  }
  .grid-view{
  box-sizing: border-box;
}
   
  .col-{
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;}
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;}
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}
    }
  
  /* For mobile phones: */
[class*="col-"] {
  width: 100%;
}

@media only screen and (min-width: 768px) {
  /* For desktop: */
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 41.66%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}
}
   
/* Responsive layout - when the screen is less than 600px wide, make the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    width: 100%;
  }
}
  
  
  }
  .imgdiv{
  width: 90%;
    border: 30px solid white;
  margin-left: auto;
  margin-right: auto; 
    <!--
    responsive
    -->
    max-width: 100%;
  height: auto;
    
    
  }
  .header{
    text-align: center;
    color: white;
  }
.header2{
    text-align: center;
  color: white;
  }
  .body{
    background-color: royalblue;
    line-height: 25px;
    height: auto;
    font-style: arial;
      
  }
  .form{
   width: 60%;
    margin: auto;
    padding: 50px 100px 100px 100px;
    color: white;
    background-color: darkblue;
    
  }
  .inputfield{
    margin: auto;
    box-sizing: border-box;
    border-radius: 4px;
    border-bottom: 2px solid white;
    width: 100%;
    height: 30px;
  }
  .textinput {
            float: left;
            width: 100%;
            min-height: 75px;
            outline: none;
            resize: none;
            border: 1px solid grey;
        }
  .button {
            float: left;
            width: 100%;
            min-height: 30px;
            outline: none;
            resize: none;
            border: 1px solid green;
    margin: 10px 0 0 0;
    background-color: green;
    color: white;
        }
</style>
<header>
<meta>
   <meta name="viewport" id="main" content="width=device-width, initial-scale=1.0">
  <h1 id="title" class="header">freeCodeCamp Survey Form</h1>
  <em><h3 id="description" class="header2">Thank you for taking the time to help us improve the platform</h3></em>
  
  </meta>
</header>


<body class="body">
  <form id="survey-form" class="form">
    <label for="name-label">Name:</label><br>
  <input class="inputfield" type="text" id="name-label" name="name-label" placeholder="Enter your  name.."><br>
  <label for="email-label">Email:</label><br>
  <input class="inputfield" type="email-label" id="email-label" name="email-label" placeholder="Enter your email address.." required><br>
    <label for="number-label">Age: (Optional)</label><br>
  <input class="inputfield" type="number-label" min="10" max="100" id="number-label" name="number-label" placeholder="Enter your age.."  required><br>
    <label for="dropdown">Which option best describes your current role?</label><br>
    <select class="inputfield" id="dropdown" name="dropdown">
  <option value="dropdown">Select current role</option>
  <option value="student">Student</option>
      <option value="fulltimejob">Full Time Job</option>
      <option value="fulltimelearner">Full Time Learner</option>
  <option value="prefernottosay">Prefer not to say</option>
  <option value="other">Other</option>
</select>
  <br>
    <label for="text">Would you recommend freeCodeCamp to a friend?</label><br>
  <input type="radio" id="friend" name="friend" value="definately" checked>
  <label for="definately">Definately</label><br>
  <input type="radio" id="friend" name="friend2" value="maybe">
  <label for="maybe">Maybe</label><br>
  <input type="radio" id="friend" name="friend3" value="notsure">
  <label for="notsure">Not Sure</label><br>
    <label for="text">What is your favorite feature of freeCodeCamp?</label><br>
    <select class="inputfield" id="feature" name="feature">
  <option value="choose">Select an option</option>
  <option value="challenges">Challenges</option>
      <option value="projects">Projects</option>
      <option value="community">Community</option>
  <option value="opensource">Open Source</option>
  </select>
  <br>
   
    <label for="text">What would you like to see improved? (Check all that apply)</label><br>
    <input type="checkbox" id="box1" name="box1" value="box1">
  <label for="box1"> Front-end Projects</label><br>
    <input type="checkbox" id="box2" name="box2" value="box2">
  <label for="box2"> Back-end Projects</label><br>
 <input type="checkbox" id="box3" name="box3" value="box3">
  <label for="box3"> Data Visualization</label><br>
    <input type="checkbox" id="box4" name="box4" value="box4">
  <label for="box4"> Challenges</label><br>
    <input type="checkbox" id="box5" name="box5" value="box5">
  <label for="box5"> Open Source Community</label><br>
    <input type="checkbox" id="box6" name="box6" value="box6">
  <label for="box6"> Gitter help rooms</label><br>
    <input type="checkbox" id="box7" name="box7" value="box7">
  <label for="box7"> Videos</label><br>
    <input type="checkbox" id="box8" name="box8" value="box8">
  <label for="box8"> City Meetups</label><br>
    <input type="checkbox" id="box9" name="box9" value="box9">
  <label for="box9"> Wiki</label><br>
    <input type="checkbox" id="box10" name="box10" value="box10">
  <label for="box10"> Forum</label><br>
    <input type="checkbox" id="box11" name="box11" value="box11">
  <label for="box11"> Additional Courses</label><br>
    
  <label for="comment" id="comment"> Any comments or suggestions?</label><br>
    <textarea name="message" class="textinput">
Enter your comment here..
</textarea>
    <br><br>
    <button class="button">Submit</button>
    
  </form>
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console