Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="main.css">
    <title>Document</title>
</head>
<body>
        <section id="form-container">
   

        <div class="main-title">

        <h1>freeCodeCamp survey form</h1>
        <h4>Thank you for taking the time to help us improve the platform</h4>


   

    

    </div>
    <div class="container-form">
    <div class="form-box">

        <form action="">

         <div class="container">

            <label for="uname">Name: </label><br>
            <input type="text" placeholder="Enter your name" required><br>
            <label for="uname">Email: </label><br>
            <input type="email" placeholder="Enter your name" required><br>
            <label for="uname">Age:(optional) </label><br>
            <input type="number" name="age" min="1" max="100"><br>
            <label for="uname">Which option best describes your current role? </label><br>
             <select>
                 <option value="Value">Value</option>
                 <option value="">Full time Job</option>
                 <option value="">Full time learner</option>
                 <option value="">Prefer not to say</option>
                 <option value="">Other</option>


             </select><br>
             <label for="">Would you recommend freeCodeCamp to a friend?</label><br>
             <input type="radio" value="Definitely">Definitely<br>
             <input type="radio" value="May be">Maybe <br>
             <input type="radio" value="Not sure"> Not Sure<br>
             <label for="uname" class="feature">What is your favorite feature of freeCodeCamp </label><br>
             <select name="" id="">
                 <option value="Select an Option">Select an Option</option>
                 <option value="">Challenges</option>
                 <option value="">Projects</option>
                 <option value="">Open Source</option>
                 <option value="">Community</option>
                 
             </select>

             <label for="uname" class="feature">What would you like to see improved?(Check all that apply) </label><br>
             <div class="checkboxclass">
             <input type="checkbox" name="" id="" checked>    Front-end projects<br>
             <input type="checkbox" name="" id="">    Back-end projects<br>
             <input type="checkbox" name="" id="">    Data Visualization<br>
             <input type="checkbox" name="" id="">    challenges<br>
             <input type="checkbox" name="" id="">    open source community<br>
             <input type="checkbox" name="" id="">    glitter help rooms<br>
             <input type="checkbox" name="" id="">    videos<br>
             <input type="checkbox" name="" id="">    city meetups<br>
             <input type="checkbox" name="" id="">    wiki<br>
             <input type="checkbox" name="" id="">    forum<br>
             <input type="checkbox" name="" id="">    additional courses<br>

            </div>
            Any Comments or suggestions?<br>
            <textarea name="" id="" cols="69" rows="10" placeholder="Enter your text here"></textarea>

            <a href="#" class="only-btn" type="submit">submit</a>


         </div>
        </form>
    </div>
</div>
</section>
</body>
</html>
            
          
!
            
              *{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* #form-container{
    padding:0
} */

#form-container{
    background:linear-gradient(rgba(128,0,128,0.7),rgba(128,0,128,0.4)),url('https://www.tripsavvy.com/thmb/6jvw4nAA0aT-MV6km_MYbNfMa8U=/2122x1415/filters:fill(auto,1)/GlacierNationalParkMontana-FengWeiPhotography-Getty-5711489a3df78c3fa2b5d2a2.jpg');
    background-attachment: fixed;
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
    min-height:100vh;
    padding:0
}


.main-title h1{
    color:white;
    text-align:center;
    font-size:50px;
    text-transform: capitalize;
    /* margin-top:40px; */
    padding-top:100px;
    /* margin-top:0; */
}

.main-title h4{
    text-align:center;
    font-size:26px;
    /* margin-top:260px; */
    /* padding-bottom:-40px; */
    padding-top:66px;
    color:white;
    font-style: italic;
    
}
#form-container .form-box{
    background:purple;
    width:35%;
    min-height:100vh;
    opacity: 0.8;
    border-radius:10px;
/*     display:flex;
    justify-content: center; */
  /* margin:0 auto; */
}
.container-form{
    display:flex;
    justify-content: center;
    margin-top:10px;
    
}

.container{
    padding:40px; 
    color:white;
    font-size:20px;

    
}

input[type=text],input[type=email],input[type=number],select{
    width:100%;
    display:inline-block;
    margin:16px 0;
    padding:12px 20px;

}
.feature{
    margin-top:10px;
}

input[type=radio]{
    margin-top:15px;
    margin-bottom:21px;
}

.checkboxclass{
    text-transform: capitalize;
    padding:15px 0;
}

input[type=checkbox]{
    margin-right:10px;
    transform: scale(2);
    margin-bottom:30px;
    
}
textarea{
    margin-top:17px;
    padding:15px;
}

.only-btn{
    margin-top:20px;
    text-decoration: none;
    text-align: center;
    text-transform: capitalize;
    background:green;
    display:inline-block;
    color:white;
    padding:10px 12px;
    width:100%;
    opacity:1;

}
.only-btn:hover{
  background:#006400;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console