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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!DOCTYPE html>
<html>
  <body>
  <header>
    <div id="main">
      <h1 id="title"> Yoga Survey </h1>
      <p id="description" > Please take the time to fill out this survey to help us improve your yoga sessions namaste</p>
  </header>
    <form id="survey-form">
      <div id="form-section">
      <label for="name" id="name-label">Name:
       </label>
      <input type="text" name="name" id="name" class="textinput" placeholder=" Enter your name" required/>
      </div>
    <div="form-section">
    <label for="email" id="email-label" >Email:
    </label>
    <input type="email" id="email" name="email" 
 class="textinput" placeholder="Enter your email" required />
      </div>
      <div id="form-section">
        <label for="number" id="number-label">Age (optional):</label>
      <input type="number" name="age" id="number" placeholder="Enter your age" min="1" max="120"/>
      </div>
      <div id="form-section">
        
      <label for="gender" id="gender">Your gender:
      </label>
      <input type="radio" id="male" name="gender" value="male"checked>
      <label for="male">Male</label>
        <input type="radio" id="female" name="gender" value="female">
      <label for="female">Female</label>
      <input type="radio" id="prefer" name="gender" value="prefer">
      <label for="prefer">Prefer not to say</label>
      </div>
        <div id="form-section">
          <label for="how-often" id="how-often">How often do you do practise yoga monthly?</label>
          <select id="dropdown" name="how-often" class="from-section"required>
            <option disabled selected value>--Please choose an option--</option>
         
            <option value="1-3"> 1-3 times per month</option>
            <option value="3-6"> 3-6 times per month</option>
            <option value="6+"> 6+ times per month</option>
            </select>
            </div>
          
        <p class="paramount"> 
            Your wellness is our paramount
          </p>
        <label for="hotyoga" id="hotyoga">Would you be interetsed in Hot Yoga sessions?</label>
        <div class="hotyoga">
        <input type="radio" id="yes" name="hotyoga" value="yes" checked>
        <label for="yes">Yes</label>
        <input type="radio" id="no" name="hotyoga" value="no">
          <label for="no">No</label>
      <input type="radio" id="maybe" name="hotyoga"
 value="no">
        <label for="maybe">Maybe</label>
        </div>
    <div id="form-section">
      <p> Please select the yoga you practise
        <span class=morebox> (If more than one please select)</p>
   
      <input type="checkbox" id="anusara" value="anusara" name="yoga">
      <label id="anusara-label" for="anusara">Anusara</label>
        <input type="checkbox" id="ashtanga" value="ashtanga" name="yoga">
        <label id="ashtanga-label" for="ashtanga">Ashtanga</label>
      <input type="checkbox" id="bikram" value="bikram"
             name="yoga">
        <label id="bikram-label" for="bikram">Bikram</label>
        <input type="checkbox" id="prenatalyoga" value="prenatalyoga"
               name="yoga">
        <label id="prenatalyoga-label" for="hatha">Prenatal yoga</label>
        <input type="checkbox" id="iyenga" value="iyenga" name="yoga">
        <label id="Hatha-label" for="hatha">Hatha</label>
        <input type="checkbox" id="restorative" value="restorative" name="yoga">
        <label id="restorative-label" for="restorative">Restorative</label>
        <input type="checkbox" id="vinyasa" value="vinyasa"
               name="yoga">
        <label id="vinyasa-label" for="vinyasa">Vinyasa</label>
    </div> 
    <div id="hotyoga">
      <label for="retreat" id="retreat">Would you be interested in a 7 day Bali Yoga retreat?</label>
      <input type="radio" id="yes" name="retreat" value="yes"checked>
      <label for="yes">Yes</label>
      <input type="radio" id="no" name="retreat"
             value="no">
      <label for="no">No</label>
      <input type="radio" id="maybe" name="retreat" value="maybe">
      <label for="maybe">Maybe</label>
    </div>
    <div id="form-section">
      <label for="sugg">Any Suggestions to improve your sessions?</label>
      <textarea id="sugg" class="sugg-area" name="sugg" placeholder="Please eneter your information here.."></textarea>
    </div>
    <div id="form-section">
      <button type="submit" id="submit" class="submit-button">Submit</button>
  
  
  
  
  
  
  
      </header>
      </main>    
   </body>     
</html>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=BenchNine:wght@700&display=swap');


body::after {
  content: "";
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      90deg,
      rgba(106, 118, 253, 0.1),
      rgba(214, 224, 68, 0.9)
    ),url('https://www.waterfront-properties.com/images/istock_000072650247_medium_1656_04.jpg');
  
  background-size: cover;
  top: 0;
  left: 0;
  bottom: 0;
  opacity: ;
  z-index: -1;
  
 
  
  body > * {
    z-index: 100;
 
  }
  
}

body{
   background-image: url('https://www.waterfront-properties.com/images/istock_000072650247_medium_1656_04.jpg');
  background-size: cover;
    width: 100%;
    height:100%;
    position: center;

}

#main{ 
width:100%;  
font-family: 'BenchNine', sans-serif;
  text-align: center;
  
    width: 100%;
    height:100%;
   
  
}

#title{ font-size: 8em;
  position: justify;
  
}
#description{ font-size: 4em;
  text-align: center;
  
}

#survey-form{ 
  position: absolute;
  text-align: center;
  padding:4px;
  font-family: 'BenchNine', sans-serif;
  font-size: 2em;
  border: 8px solid;
  width: 15em;
  height: 40em;
  margin: 10px 0px 20px 0px;
  right: 19em;
  
  
}

#textinput{
  
}

#form-section{
  padding: 10px 50px 20px;
  position: center;
  
  
}
#paramount{
  font-size: 20em;
}
#hotyoga{
  
}
.sugg-area{ position: absolute;
  display: block;
  width: 75%;
  
  
}

#submit{
  display: relative;
  border: 0;
  background-color: rgba(163, 238, 252);
  line-height: 2;
  font-family: 'BenchNine', sans-serif;
  font-size: 20px;
  color: inherit;
  padding: 0.7;
    cursor: pointed;
 
}
#submit:hover {
  background: rgba(160, 233, 200);
}
              
            
!

JS

              
                
              
            
!
999px

Console