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

              
                <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Yogey Form</title>
  <link rel="stylesheet" href="styles.css">
</head>

<body>
  <div class="questions">
    <header>
      <h1 id="title">Yogey Form</h1>
      <p id="description">Thank you to be on the right path to impove yourself and my website too :)</p>
    </header>
    <main>
      <form id="survey-form">
        <fieldset class="person">
          <label id="name-label">Name <input required id="name" placeholder="Enter your name" type="text">
          </label>
          <label id="email-label">Email <input required id="email" placeholder="Email" type="email"></label>

          <label id="number-label">Age (optional) <input id="number" placeholder="Age" type="number" min="10" max="99"></label>

        </fieldset>
        <fieldset>
          <label>How long do you practice yoga?</label>
          <select name="yoga-years" id="dropdown">
            <option value="option">Select an option</option>
            <option value="0-1 year"> 0-1 year</option>
            <option value="1-2 years"> 1-2 years</option>
            <option value="2-5 years">2-5 years</option>
            <option value="5-10 years">5-10 years</option>
            <option value="10-15 years">10-15 years</option>
            <option value="15+ years">15+ years</option>
          </select>
        </fieldset>
        <fieldset>
          <label>Which is your current level?</label>
          <label for="beginner"><input class="inline" id="beginner" value="beginner" name="level" type="radio"> Beginner</label>
          <label for="intermediate"><input class="inline" id="intermediate" value="intermediate" name="level" type="radio"> Intermediate </label>
          <label for="master"><input class="inline" id="master" name="level" value="master" type="radio"> Master</label>
        </fieldset>
        <fieldset>
          <label>Which kind of yoga do you do?
            <select id="yoga-arts" name="yoga-arts">
              <option value="select">Select an option</option>
              <option value="vinyasa-yoga">Vinyasa Yoga</option>
              <option value="hatha-yoga">Hatha Yoga</option>
              <option value="bakhti-yoga">Bakhti Yoga</option>
              <option value="ashtanga-yoga">Ashtanga Yoga</option>
              <option value="karma-yoga">Karma Yoga</option>
              <option value="kundalini-yoga">Kundalini Yoga</option>
              <option value="other">Other</option>
            </select>
          </label>
        </fieldset>
        <fieldset>
          <label>What kind of videos would you like to see ?</label>
          <label><input value="theory" class="inline" name="checkbox" type="checkbox">Theory</label>
          <label><input value="warm up" class="inline" type="checkbox"> Warm up</label>
          <label><input value="asana" class="inline" type="checkbox"> Asana</label>
          <label><input value="breathing exercise" class="inline" type="checkbox"> Breathing exercise</label>
          <label><input value="relaxation" class="inline" type="checkbox"> Relaxation</label>
          <label><input value="meditation" class="inline" type="checkbox"> Meditation</label>
          <label><input value="mantras" class="inline" type="checkbox"> Mantras</label>
          <label><input value="advice" class="inline" type="checkbox"> Real Life Advice</label>
          <label><input value="recipes" class="inline" type="checkbox"> Recipes</label>
          <label><input value="books" class="inline" type="checkbox"> Holy Scriptures</label>
        </fieldset>
        <fieldset>
          <label>Any suggention or komment? <textarea rows="5" cols="30" placeholder="Enter your advice here..." name="komment" id="survey-form"></textarea></label>
          <button id="submit">Submit</button>
        </fieldset>
      </form>
    </main>
  </div>
</body>

</html>
              
            
!

CSS

              
                body {
  background-image: url(https://cdn.pixabay.com/photo/2015/08/10/18/27/blue-882961_960_720.jpg);
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: 20px;
  color: white;
}

h1,
p {
  margin: 1em auto;
  text-align: center;
}

form {
  margin: 0 auto;
  max-width: 500px;
  min-width: 300px;
  width: 60vw;
  padding-bottom: 2em;
}

fieldset {
  padding: 0.5rem 0;
  border: none;
}

label {
  display: block;
  margin: 0.5rem 0;
}

.yoga {
  display: block;
  margin: 0 auto;
}

input,
textarea,
select {
  margin: 10px 0 0 0;
  width: 100%;
  font-family: "Caveat", cursive;
  min-height: 2.5em;
}

input,
textarea,
select,
option,
#submit {
  background-color: #cde5d7ab;
  border: 1px solid #364181ab;
  font-size: 12px;
}

.inline {
  width: unset;
  margin: 0 0.5em 0 0;
  vertical-align: middle;
}

.questions {
  background-color: #171A29;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 5px;
  box-shadow: 2px 2px 2px 2px #2C324E;
}
.person {
  display: block;
  margin: 0.5rem 0;
}

button {
  font-family: "Caveat", cursive;
  display: block;
  width: 100%;
  margin: 1em auto;
  height: 2.8em;
  min-width: 300px;
  cursor: pointer;
}

#submit {
  font-size: 16px;
}

#submit:hover {
  background-color: #6B8CA0;
}
              
            
!

JS

              
                
              
            
!
999px

Console