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>
<div class="wrapper">
		<div class="header">
			<h1 id="title"><span class="logo logo1">travel</span><span class="logo logo2">easy</span></h1>
			<p class="font-color" id="description">What is your next destination?</p>
		</div>
		<div class="form font-color">
			<form id="survey-form">
				<div>
					<label class="first font" id="name-label" for="name">Name:</label>
					<input class="box" id="name" type="text" name="name" placeholder="Enter your name" required>
				</div>
				<div>
					<label  class="font" id="email-label" for="email">Email:</label>
					<input class="box" id="email" type="email" name="email" placeholder="Enter your email" required>
				</div>
				<div>
					<label  class="font" id="number-label" for="number">Age:</label>
					<input class="box" id="number" type="number" name="number" min="0" max="100" placeholder="Enter your age" required>
				</div>
				<div>
					<label  class="font" for="dropdown">Are you traveling with: </label>
					<select class="box" id="dropdown">
						<option selected disabled>Select</option>
						<option value="friends">Friends</option>
						<option value="spouse">Spouse/partner</option>
						<option value="spouse-children">Spouse/partner and children</option>
						<option value="children">Children</option>
						<option value="elderly">Elderly</option>
						<option value="just-me">Just me</option>
					</select>
				</div>
				<div class="checkboxspace">
					<p class="font">How often do you travel?</p>
					<label>
						<input name="frequency" type="radio" value="1-month">Once a month
					</label>
					<label>
						<input name="frequency" type="radio" value="six-months">Every six months
					</label>
					<label>
						<input name="frequency" type="radio" value="12-months">Once a year
					</label>
				</div>
				<div class="checkboxspace">
					<p class="font">What do you want on your next trip?</p>
					<label>
						<input type="checkbox" name="prefer" value="beach">Beach
					</label>
					<label>
						<input type="checkbox" name="prefer" value="mountains">Mountains
					</label>
					<label>
						<input type="checkbox" name="prefer" value="hiking">Hiking
					</label>
					<label>
						<input type="checkbox" name="prefer" value="museums">Museums
					</label>
					<label>
						<input type="checkbox" name="prefer" value="local-turism">Local Turism
					</label>
					<label>
						<input type="checkbox" name="prefer" value="night-life">Night Life
					</label>
				</div>
				<div>
					<p class="font">What would make this trip great?</p>
					<textarea class="textarea" rows="6" placeholder="Tell us more anout your trip..."></textarea>
				</div>
				<div>
					<input id="submit" type="submit" name="submit">
				</div>
			</form>
		</div>
	</div>
              
            
!

CSS

              
                * {
	padding: 0px;
	margin: 0px;
	box-sizing: border-box;
}
body::before {
	content: " ";
	background: url(https://images.unsplash.com/photo-1542132232-77dbcdcb6ddc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=3450&q=80) no-repeat center;
	background-size: cover;
	height: 100vh;
	opacity: 0.6;
	z-index: -1;
	height: 100%;
	width: 100%;
	position: fixed;
}
.wrapper {
	position: absolute;
	top: 40px;
	width: 100%;
	margin-bottom: 80px;
}
.header {
	margin-bottom: 20px;
	text-align: center;
}
.form {
	font-family: 'Roboto', sans-serif;
	font-size: 24px;
}
#survey-form {
	max-width: 600px;
	margin: 0 auto;
	background-color: rgba(71,136,202,0.8);
	border-radius: 15px;
	box-shadow: -0.01em -0.01em 1px #ffffff;
}

/*logo*/
.logo {
	font-size: 100px;
}
.logo1 {
	font-family: 'Fugaz One', cursive;
	color: #FFFFFF;
	text-transform: uppercase;
}
.logo2 {
	font-family: 'Kaushan Script', cursive;
	color: #AEFF4D;
}
/*end logo*/

#title {
	padding: 5px;
}
#description {
	font-family: 'Roboto Condensed', sans-serif;
	font-style: italic;
	font-size: 32px;
  font-weight: 1000;
	padding: 5px;
}
.font-color {
	color: #ffffff;
}
.font {
	font-weight: 400;
	font-family: 'Roboto', sans-serif;
}
label {
	display: block;
}
.box {
	width: 100%;
	height: 36px;
	font-size: 20px;
	margin: 5px 0px;
	padding: 5px;
}
.form div {
	padding: 10px 10%;
}
.first {
	padding-top: 20px;
}
.checkboxspace input {
	margin-right: 8px;
}
.checkboxspace label {
	font-size: 20px;
	margin-top: 3px;
	font-weight: 100;
}
.textarea {
	width: 100%;
	font-size: 20px;
	margin-top: 5px;
	font-family: 'Roboto', sans-serif;
	padding: 5px;
	font-weight: 300;
}
#submit {
	width: 100%;
	height: 46px;
	margin-bottom: 20px;
	background-image: linear-gradient(45deg,#85D128,#76B923);
	border-radius: 5px;
	text-transform: uppercase;
	font-size: 32px;
	color: #ffffff;
	border: 0px solid #ffffff;
	font-weight: bold;
	cursor: pointer;
	letter-spacing: 0.05em;
	font-family: 'Fugaz One', cursive;
	box-shadow: -0.5px -0.5px 3px #000000;
}
#submit:active {
	background-image: linear-gradient(45deg,#E4ED35,#D5DE2A);
}

@media screen and (max-width: 600px) {
	.logo {
		font-size: 60px;
		letter-spacing: -0.1em;
	}
  #description {
    font-size: 24px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console