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

              
                <div id="background">

<header> 
	<h1 id="title">Pokémon</h1>
		<div id="border"></div>
		<p id="description">What if Pokémon were real?!</p>
		<div id="border"></div>
</header>

<form id="survey-form" method="GET" action="">

	<div class="inputrij">
		<div class="left-side">
			<label id="name-label" for="name">Name</label>
		</div>
		<div class="right-side">
			<input type="name" id="name" class="inputfield" required placeholder="  Enter your name">
		</div>
	</div>
	<div class="inputrij">
		<div class="left-side">
			<label id="email-label" for="email">Email</label>
		</div>
		<div class="right-side">
			<input type="email" id="email" class="inputfield" required placeholder="  Enter your email">
		</div>
	</div>

	<div class="inputrij">
		<div class="left-side">
			<label id="number-label" for="number">Your age</label>
		</div>
		<div class="right-side">
			<input type="number" name="number" id="number"  class="inputfield" min="1" max="125" required placeholder="  Enter your age">
		</div>
	</div> 

	<div class="inputrij">
		<div class="left-side">
			<label for="dropdown">What's your favorite type of Pokémon?</label>
		</div>
		<div class="right-side">
			<select id="dropdown" name="Type-select" class="favoritetype">
				<option disabled value>Select a Pokémon-type </option>
					<option value="Water-type">Water-type</option>
					<option value="Electric-type">Electric-type</option>
					<option value="Grass-type">Grass-type</option>
					<option value="Psychic-type">Psychic-type</option>
          <option value="Fire-type">Fire-type</option>
					<option value="Other">Other</option>
			</select>
		</div>
	</div>

	<div class="inputrij">
		<div class="left-side">
			<label for="radio-buttons">What starter Pokémon would you pick?</label>
		</div>
		<div class="right-side">
			<ul style="list-style:none">
				<li class="button"><input name="radio-buttons" value="1" type="radio" class="starter"><label>Bulbusaur</label></li>
				<li class="button"><input name="radio-buttons" value="2" type="radio" class="starter"><label>Squirtle</label></li>
				<li class="button"><input name="radio-buttons" value="3" type="radio" class="starter"><label>Charmander</label></li>
				<li class="button"><input name="radio-buttons" value="4" type="radio" class="starter"></label>Pikachu</label></li>
			</ul>
		</div>
	</div>

	<div class="inputrij">
		<div class="left-side">
			<label for="checkboxfield">If I were a Pokémon trainer, I would... <br><i>(you can only select one)</i></label>
		</div>
		<div class="right-side">
			<ul style="list-style:none">
				<li class="checkbox"><label><input name="objective-choice" value="1" type="checkbox" class="checkboxfield">Try to become the best trainer in the world</label></li>
				<li class="checkbox"><label><input name="objective-choice" value="2" type="checkbox" class="checkboxfield">Try to catch as many Pokémon as I can!</label></li>
				<li class="checkbox"><label><input name="objective-choice" value="3" type="checkbox" class="checkboxfield">Just have as much fun as possible</label></li>
				<li class="checkbox"><label><input name="objective-choice" value="4" type="checkbox" class="checkboxfield">Travel the world with my Pokémon</label></li>
				<li class="checkbox"><label><input name="objective-choice" value="5" type="checkbox" class="checkboxfield">I haven't figured it out yet</label></li>
			</ul>
		</div>
	</div>

	<div class="inputrij">
		<div class="left-side">
			<label for="commments">Why should scientists bring Pokémon to life?</label>
		</div>
		<div class="right-side">
			<textarea id="comments" class="inputfield" style="height:2vw" name="commentsection" placeholder="Your thoughts"></textarea>
      <br>
      <button id="submit" type="submit">Submit</button>
      <br>
      <br>
      <br>
		</div>
 </div>
</form>
</div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');

#background {
  background-color:rgba(226,149,114,1.7);
  margin-left:20vw;
  margin-right:20vw;
  margin-bottom: 5vw;
  border-radius:5px;
}

#dropdown {
  width:15.7vw;
}


#title {
  font-family:Monserrat,sans-serif;
  color:white;
  padding-top:15px;
  font-size:40px;
  text-align:center;
  margin-left:-5vw;
  }

#border {
  border-style:solid;
  border-color:white;
  margin-left:21vw;
  margin-right:23vw;
  margin-bottom:1vw;
  border-width:1px;
  padding-bottom:0px;
}

#description {
  font-size:1vw minmax(10px, 50%);
  font-family:Montserrat,sans-serif;
  color:white;
  text-align:center;
  margin-left:-4vw;

}

.left-side {
  color:white;
  font-family:Montserrat, sans-serif;
  display: inline-block;
  text-align:right;
  width:37%;
  padding-top:0.5%;
  margin-top:0.3%;
}

.right-side {
  font-family:Monserrat, sans-serif;
  display: inline-block;
  text-align:left;
  margin-left:1vw;
  vertical-align:middle;
  width:minmax(70%,85%);
}

#name {
  width:15vw;
}
#email {
  width:15vw;
}
#number {
  width:15vw;
}

.inputfield {
  height: 20px;
  min-width: 15vw;
  max-width:50vw;
  min-height:20px;
  max-height:50px;
  padding: 5px;
  margin: 10px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
}

.favoritetype {
  margin: 10px;
  height: 30px;
  width: 285px;
  padding: 5px;
  margin: 10px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
  font-family:Monserrat, sans-serif;
  font-size:14px;
  color:#8a8a8a;
}

.starter {
  float: left;
  margin-right: 21px;
  margin-left:-1.7vw;
  font-family:Monserrat,sans-serif;
}

.checkboxfield {
  float:left;
  margin-right:17px;
  margin-left:-1.7vw;
  color:pi
}

.button{
  left:-40%;
  color:white;
  padding:5px;
}
.checkbox {
  color:white;
  font-family:Monserrat,sans-serif;
  padding:5px;
}

.textarea {
 vertical-align:-50px;
 display:inline-block;
 padding:5px;
 width:18vw;
}

#submit {
  background-color: #59ace0;
  border-radius: 4px;
  color: white;
  font-size: 1em;
  height: 40px;
  width: 96px;
  margin-top: 50px;
  margin-bottom:50px;
  border: 0px solid;
  
}


@media screen and (max-width: 833px) {
  .inputfield {
    width: 80%;
  }
  select {
    width: 90%;
  }
}

@media screen and (max-width: 520px) {
  .left-side {
    width: 100%;
    text-align: left;
  }
  .right-side {
    width: 80%;
    float: left;
  }
  .inputfield {
    width: 100%;
  }
  select {
    width: 100%;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console