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.

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Template URL

Any Pen can act as a template (even if you don't flip the toggle above) with a special URL you can use yourself or share with others. Here's this Pen's template URL:

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<html>
<head>
	<title>Nobile Trampolines Product Landing</title>
	<link rel="stylesheet" type="text/css" href="landstyle.css">
	<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/all.js" integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe" crossorigin="anonymous"></script>


</head>
<body>
	<header id="header">
		<div id="logo-name">
			<img src ="logo.jpg" width="100" height="100" id="header-img">
			<h1>Trampolines</h1>
		</div>
		<nav id="nav-bar">
			<ul>
				<li><a href="#features" class="nav-link">Features</a></li>
				<li><a href="#prod-vid" class="nav-link">About</a></li>
				<li><a href="#pricing" class="nav-link">Pricing</a></li>
			</ul>
		</nav>
	</header>

<!-- Top Container -->

	<div id="top-container">
		<h1>bigger. better. bouncier.</h1>
		<form id="form" action="https://www.freecodecamp.com/email-submit">
			<input type="email" name="email"
			id="email" required placeholder="Enter Email here..."><br><br>
			<input type="submit" value="Get More Info" id="submit" class="btn">
		</form>
	</div>

<!-- Features -->
	<section class="features" id="features">
		<div class="feat-box">
			<div class="icon">
				<i class="fab fa-envira fa-4x"></i>
			</div>
			<div class="text">
			<h1>Premium Materials</h1>
			<p>Our trampolines are made from all-natural, organic materials. This makes them basically hypoalergenic. Sorta.</p>
			</div>
		</div>
		<div class="feat-box">
			<div class="icon">
				<i class="fas fa-truck-moving fa-4x" id="truck"></i>
			</div>
			<div class="text" id="ship-text">
				<h1>Fast Shipping</h1>
				<p>We can ship it anywhere in the galaxy in under four parsecs.</p>
			</div>
		</div>
		<div class="feat-box">
			<div class="icon">
			<i class="fas fa-bomb fa-4x"></i>
			</div>
			<div class="text" id="explosive">
				<h1>Explosive Fun</h1>
				<p>Our trampolines are the bomb.</p>
			</div>
		</div>
	</section>

	<!-- Product Video-->

	<section class="prod-vid" id="prod-vid">
		<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/4JtlbqYUwNs" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
	</section>
	
<!-- Pricing Boxes -->

	<section class="pricing" id="pricing">
		<div class="price-box-a">
			<h2>Baby Bear Tramp</h2>
			<h3>$300</h3>
			<p class="desc">Don't let them tell you size matters, this little guy will have you jumping all night!</p>
			<input type="submit" value="Buy Now" class="btn">
		</div>
		<div class="price-box-b">
			<h2>Momma Bear Tramp</h2>
			<h3>$750</h3>
			<p>Big enough for all your friends to jump on!
			</p>
			<input type="submit" value="Buy Now" class="btn">
		</div>
		<div class="price-box-c">
			<h2>Pappa Bear Tramp</h2>
			<h3>$1200</h3>
			<p class="desc">The Big Guy. The Mac-Daddy. The King. You HAVE to try this!</p>
			<input type="submit" value="Buy Now" class="btn">
		</div>
	</section>

<!-- Footer -->

	<section>
		<div class="footer">
			<ul>
				<li><a href="#" class="foot-link">Privacy</a></li>
				<li><a href="#" class="foot-link">Terms</a></li>
				<li><a href="#" class="foot-link">Contacts</a></li>
				<p>Copyright 2018, Nobile Trampolines</p>
			</ul>
		</div>
	</section>

</body>
</html>
              
            
!

CSS

              
                
:root {
	--red: #EF1B13;
	--white: #f3f3f3;
}

html {
	box-sizing: border-box;
	font-family: arial, helvetica, sans-serif;

}

body {
	background-color: var(--white);
	display: flex;
	flex-direction: column;
}


header {
	top: 0;
	background-color: #000;
	position: fixed;
	display: flex;
	flex-direction: row;
  	justify-content: space-around;
  	align-items: flex-end;
	margin: 0;
	padding: 0 20px;
	width: 100%;
	height: auto;
	z-index: 1;
}


#header-img {
	max-width: 100%;
	height: auto;
	color: #fff;
	align-items: flex-start;
	position: relative;
	top: 25px;
}

#logo-name {
	color: var(--white);
	font-size: 12px;

}

#nav-bar {
	padding: 0 50px;
	justify-content: flex-end;
	word-spacing: 30px;
}

ul li {
	display: inline;
	font-size: 20px;
}

a {
	color: var(--white);
	text-decoration: none;
	padding: 0 5px;
}

a:hover {
	color: var(--red);
}

#top-container {
	padding-top: 120px;
	text-align: center;
	text-transform: uppercase;
}

#email {
	max-width: 275px
	width: 100%
	padding: 5px;
}

.btn {
	border-radius: 12px;
	border: none;
	background-color: var(--red);
	color: #fff;
	padding: 10px 24px;
	font-size: 1em;
	font-weight: bold;
	cursor: pointer;
}

.features {
	margin-top: 100px;
}

.feat-box {
	display: flex;
	justify-content: flex-start;
	margin-left: 20%;

}

.icon {
		color: var(--red);
		padding-right: 30px;
}

#truck {
	position: relative;
	right: 20px;
}


.text {
	position: relative;
	bottom: 10px;
}

#ship-text {
	position: relative;
	right: 20px;
}

.text p {
	position: relative;
	bottom: 20px;
}

.prod-vid {
	display: flex;
	justify-content: center;
	padding: 10px;
	margin-top: 50px;
}

iframe {
    max-width: 560px;
    width: 100%;
}

.pricing {
	margin-top: 50px;
	display: flex;
	flex-direction: row;
	justify-content: space-around;


}

.price-box-a, .price-box-b, .price-box-c {
	text-align: center;
	align-items: center;
	border: 3px solid #000;
	width: 250px;
	height: 250px;
	position: relative;
}	

.pricing .btn {
	position: absolute;
	top: 80%;
	right: 25%;
}

.footer {
	background-color: #000;
	color: #fff;
	text-align: right;
	width: 100%;
	height: 80px;
	bottom: 0;
	margin-top: 80px;
}

.footer ul {
	position: relative;
	top: 18px;
	right: 8px;
}

.footer p {
	font-size: 12px;
	position: relative;
}

@media (max-width: 550px) {
    .features {
	    width: 100%;
	    text-align: center;
	    align-items: center;
	    padding: 0;
	    display: flex;
	    flex-direction: column;
	}

	#explosive {
		position: relative;
		right: 20px;
	}

	.icon {
		display: none;
	}
}

@media (max-width: 600px) {
	header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	#logo-name {
		margin-right: 40px;
	}

	#nav-bar ul {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-right: 80px;
	}

	#top-container {
		margin-top: 80px;
	}
}

@media (max-width: 820px) {
	.pricing {
		flex-direction: column;
		align-items: center;
	}

	.price-box-a, .price-box-b, .price-box-c {
		margin-bottom: 30px;
	}
}


              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px
Two CSS properties walk into a bar. A barstool in a completely different bar falls over.

Console