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. 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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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 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.

HTML

              
                <script src='https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js'></script>
<img src="https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg">
<div class= "header">
<h1 id="title">Member's Experince</h1>
  <h2>& Example Survey Form</h2>
  <p id="description">
  This checklist is created to use with FCC "Build a Survey Form" project. The example survey form contains all the elements and attributes required to pass all test.
  </p>
</div>
<form id="survey-form" method="GET"      
      action= "https://crossorigin.me/https://freecodecamp.com">
<div id="checklist-div" class="rowTab">
<div id="form-outer">
   
    <h2>User Questionaire</h2>
    <div id="name-div" class="rowTab">
      <div id="name-label-div" class="labels">
        <label id="name-label" for="name">
          Name  
        </label>
      </div>
    <div id="namefield" class="rightTab">
        <input id="name" 
               autofocus type="text" 
               name="name"  
               class="input-field" 
               placeholder="Enter your name" 
               required>
      </div>
    </div>
    <div id="email-div" class="rowTab">
      <div id="email-label-div" class="labels">
        <label id="email-label" for="email">
          Email
          <br><small>*Required</small> 
        </label>
      </div>
      <div id="email-input" class="rightTab">
        <input type="email" 
               name="email" 
               id="email" 
               class="input-field" 
               placeholder="Enter your email address"
               required>
      </div>
    </div>
    <div id="exp-dropdown-div" class="rowTab">
      <div id="exp-dropdown-label" class="labels">
        <label for="experience">
          Previous Experience
        </label>
    </div>
      <div id="exp-dropdown-opts" class="rightTab">
        <select id="dropdown" class="dropdown">
          <option disabled value selected>
            Select an option</option>
          <option value="experienced">
            Experienced</option>
          <option value="noExperience">
            Some Experience</option>
          <option value="firstTime">
            First Time</option>
        </select>
      </div>
    </div>
    <div id="lessons-div" class="rowTab">
      <div id="lessons-label" class="labels">
        <label id="number-label" for="lessons">
          Lessons Completed 
        </label>
      </div>
      <div id="lessons-input"class="rightTab">
        <input type="number" 
               name="lesson" 
               id="number" 
               min="1" max="1000" 
               class="input-field" 
               placeholder="fCC Number of Lessons Completed">
      </div>
    </div>  
    <div id="checklist-div" class="rowTab">  
      <div id="checklist-label" class="labels">
        <label for="checklist">
         Completed freeCodeCamp Certificates  
        </label>
      </div>
      <div id="checklist-opts" class="rightTab">
        <label class="container 1"> 
          Responsive Web Design  
          <input value="1" type="checkbox" >
          <span class="checkmark"></span>
        </label>
        <label class="container 2"> 
          Javascript Algorithms & Data Structures   
          <input value="2" type="checkbox" >
          <span class="checkmark"></span>
        </label>
        <label class="container 3"> 
           Front End Libraries
          <input value="3" type="checkbox" >
          <span class="checkmark"></span>
        </label>
        <label class="container 4"> 
          Data Visualization  
          <input value="4" type="checkbox" >
          <span class="checkmark"></span>
        </label>
        <label class="container 5"> 
          APIs & Microservices  
          <input value="5" type="checkbox" >
          <span class="checkmark"></span>
        </label>
        <label class="container 6"> 
           Information Security & Quality Assurance 
          <input value="6" type="checkbox" >
          <span class="checkmark"></span>
        </label>
      </div>
    </div>
    <div id="rate-radio-div" class="rowTab">
      <div id="rate-radio-label" class="labels">
        <label for="userRating">
          How would you rate this project's challenge level?
        </label>
      </div>
      <div id="rate-radio-opts" class="rightTab">
        <ul id="rate-opts-list" style="list-style: none;">
          <li id="opt-1" class="radio">
            <label>1 - Very Easy
              <input name="radio-buttons" 
                     value="1"  
                     type="radio" 
                     class="userRatings">              
            </label>            
          </li>
          <li id="opt-2" class="radio">
            <label>2
              <input name="radio-buttons" 
                     value="2"  
                     type="radio" 
                     class="userRatings">
            </label>
          </li>
          <li id="opt-3" class="radio">
            <label>3
              <input name="radio-buttons" 
                     value="3"  
                     type="radio" 
                     class="userRatings">              
            </label>            
          </li>
          <li id="opt-4" class="radio">
            <label>4
              <input name="radio-buttons" 
                     value="4"  
                     type="radio" 
                     class="userRatings">
            </label>
          </li>
          <li id="opt-5" class="radio">
            <label>5 - Very Hard
              <input name="radio-buttons" 
                     value="5"  
                     type="radio" 
                     class="userRatings">              
            </label></li>
        </ul>
      </div>
    </div>
    <div id="comments-div" class="rowTab">
      <div id="comments-label" class="labels">
        <label for="comments">
         Any Suggestions? 
        </label>
      </div>
      <div id="comments-input"class="rightTab">
        <textarea id="comments" class="input-field" 
                  style="height:50px;resize:vertical;" 
                  name="comment" 
                  placeholder="Enter here..."></textarea>
      </div>
    </div>
    <button id="submit" type="submit">Submit</button>
  </form>
</div>
  <div><footer id="main">
<p>Written and coded by <a href="https://www.freecodecamp.org/forum/u/pranab/" target="_blank" style="color: pink; text-decoration: none;text-decoration-line: overline underline;
  text-decoration-style: wavy;">&copy;PranaB</a></p>
</footer>
  </div>
              
            
!

CSS

              
                html, body 
{ background-image: linear-gradient(to right, #323334 , black);
  min-width: 300px;
  text-align: center;
  font-family: lato,'Raleway', Helvetica, sans-serif;
  color: white;
  opacity:1.0;
}
.rowTab{
  border: 7px solid;
  border-image-source: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);
  border-image-slice: 1;
  border-radius: 5px;
  background-color: "";
  width: 70%;
  max-width: 800px;
  margin: 10px auto;
  padding: 10px; 
  opacity:0.9;
  
}
.checklist
{ border: .5px solid black;
  border-radius: 50%;
  background-color: " ";
  width: 12px;
  max-width: 800px;
  margin: 10px auto;
  padding: 0px 10px 15px 25px; 
}
.header
{ 
  border: 7px solid;
  border-image-source: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);
  border-image-slice: 1;
  border-radius: 5px;
  background-color: "";
  width: 70%;
  max-width: 800px;
  margin: 10px auto;
  padding: 10px; 
  opacity:0.9;
}
#form-outer
{ 
  background-color: "";
  margin: 10px auto;
  width: 90%;
  max-width: 800px;
  padding: 20px 2px 0px 0px;
}
/* LEFT COLUMN */
.labels 
{ display: inline-block;
  width: 20%;
  text-align: left;
  vertical-align: top;
  padding: 5px;
  margin: 5px;
  border: 0px solid black;
}
/* RIGHT COLUMN */
.rightTab 
{ display: inline-block;
  border: 0px solid black;
  width: 60%;
  text-align: left;
  vertical-align: center;
}
.input-field 
{ display: inline;
  border: .5px solid black;
  border-radius: 2px;
  height: 20px;
  width: 80%;
  padding: 10px;
  margin: 10px;
}
.input-field:hover
{ border: .5px solid #0097A7;
  
}
.dropdown 
{ display: inline-block;
  height: 45px;
  width: 85%;
  padding: 10px;
  margin: 10px;  
  border: .5px solid black;
  border-radius: 2px;
}
.dropdown option:hover
{ display: block;
  
}

/* Button: Radio Container*/
.radio  
{ display: block;
  position: relative;
  left: -43px;
  margin: auto;
  padding: 10px;
}
/* Button: Radio Postion */
.userRatings
{ float: left;
  margin-right: 5px;
}

/* HIDE DEFAULT CHECKLIST */
.container input 
{ position: relative;
  opacity: 0;
}
/* CHECKLIST STYLE*/
/* Checkbox: Labels */
.container 
{ cursor: pointer;  
  display: inline-block;
  position: relative;
  padding-left: 45px;
  margin-top: 5px;
  text-align: left;
  width: 90%;
    
}
/* Checkbox: Style */
.checkmark 
{ display: block;
  vertical-align: center;
  position: absolute;
  border: .5px solid #000;
  border-radius: 50% ; 
  box-shadow: 1px 1px #888888;
  background-color: #fff;
  top: 2.5px;
  left: 20px;
  width: 15px;
  height: 15px;
  font-size:.75em;

}

/* Checkbox: Hover Style */
.container:hover input ~ .checkmark 
  { box-shadow: 1px 1px #fff;
    color: white;
  }
/* Checkmark: Create & Style */
.container .checkmark:after 
{ color: white;
  top: -4px;
  left: 5px;
  bottom: 0px;
  width: 5px;
  height: 15px;
  border: 2px solid black;
  border-width: 0 2px 2px 0;
  padding-bottom: -2px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
/* Checkmark: Check When Clicked */
.checkmark:after 
{ content: "";
  position: absolute;
  display: none;

}
/* Checkmark: Display Check When Clicked*/
.container input:checked ~ 
.checkmark:after 
{ display: inline-block;

}
/*Submit Form*/
#submit 
{ -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
  background-color: white;
  border-radius: 12px;
  color: "";
  font-size: 1em;
  height: 40px;
  width: 100px;
  margin: 10px;
  border: .5px solid green ;
}
#submit:hover {
  background-color: #4CAF50; /* Green */
  color: white;
}
/*Responsive Design*/
@media screen and (max-width: 833px) 
{ .input-field 
  { width: 80%; }
  select 
  { width: 90%; }
 
}
@media screen and (max-width: 520px) 
{ .labels 
  { display: inline-block;
    float: left;
    margin: 5px auto;
    width: 80%;
    text-align: left;
    padding-bottom: 1px;
  }
  .rightTab 
  { display: inline-block;
    margin: 5px auto;
    padding: 0px;
    width: 80%;
    text-align: left;
  }
  .input-field
  { display: inline-block;
    float: center;
    width: 90%;
    margin: 0px auto;
    text-align: left;
  }
  select 
  { width: 80%;
  }

}
.image_one{
 position: absolute;
    top: 0px;
    left: 20px;
    width: 200px;
    height: 200px;
    border: 10px solid #FFFFFF;
  border-radius:50%;
}
footer{
  border: 7px solid;
  border-image-source: linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);
  border-image-slice: 1;
  border-radius: 12px;
  background-color: "";
  width: 45%;
  max-width: 800px;
  margin: 7px auto;
  padding: 7px; 
  opacity:0.9;
}
              
            
!

JS

              
                
              
            
!
999px

Console