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

              
                <html>
<head lang="en-us">
	<title>Product Landing page</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
	<link rel="stylesheet" type="text/css" href="main.css">
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
	<script type="text/javascript" src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</head>
<body>
	<header id="header">
		<div class="header-content">
			<img src="https://s3.amazonaws.com/freecodecamp/original_trombones.png" alt="original_trombones" id="header-img">
		</div>
		<nav id="nav-bar">
			<ul>
				<li><a href="#main" class="nav-link">Features</a></li>
				<li><a href="#info" class="nav-link">How It Works</a></li>
				<li><a href="#price" class="nav-link">Pricing</a></li>
			</ul>
		</nav>
	</header>
	<main>
		<section class="s-1">
			 <h2>Handcrafted, home-made masterpieces</h2>
 			 <form id="form" action="https://www.freecodecamp.com/email-submit">	 	
	 			 	<input type="email" name="email" required placeholder="Enter your email address" id="email">
				 	<input type="submit" id="submit" name="submit" value="Get Started">
			 </form>
		</section>
		<section class="main-container" id="main">
				<div class="icon i-1">
 					 <i class="fa fa-3x fa-fire"></i>
				</div>
				<div class="descrp d-1">
					 <h2>Premium Materials</h2>
					 <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
				</div>
				<div class="icon i-2">
		        	  <i class="fa fa-3x fa-truck"></i>
		      	</div>
		      	<div class="descrp d-2">
					 <h2>Fast Shipping</h2>
					 <p>We make sure you recieve your trombone as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
				</div>
				<div class="icon i-3">
	        		 <i class="fa fa-3x fa-battery-full" aria-hidden="true"></i>
		      	</div>
		      	<div class="descrp d-3">
					 <h2>Quality Assurance</h2>
					 <p>For every purchase you make, we will ensure there are no damages or faults and we will check and test the pitch of your instrument.</p>
				</div>
		</section>
		<section class="info" id="info">
					<iframe id="video" width="500" height="350" src="https://www.youtube-nocookie.com/embed/y8Yv4pnO7qc?rel=0&amp;controls=0&amp;showinfo=0" frameborder="0" allowfullscreen=""></iframe>	
		</section>
		<section class="price" id="price">
			<div class="equip">
				<div class="equip-head">
					<h4>TENOR TROMBONE</h4>
				</div>
				<div class="equip-content">
					<h2>$600</h2>
					<p>Lorem ipsum.</p>
					<p>Lorem ipsum dolor.</p>
					<p>Lorem ipsum.</p>
					<p>Lorem ipsum.</p>
				</div>
				<input type="submit" value="select" name="select">
			</div>
			<div class="equip">
				<div class="equip-head">
					<h4>BASS TROMBONE</h4>
				</div>
				<div class="equip-content">
					<h2>$900</h2>
					<p>Lorem ipsum.</p>
					<p>Lorem ipsum dolor.</p>
					<p>Lorem ipsum.</p>
					<p>Lorem ipsum.</p>
				</div>
				<input type="submit" value="select" name="select">
			</div>
			<div class="equip">
				<div class="equip-head">
					<h4>VALVE TROMBONE</h4>
				</div>
				<div class="equip-content">
					<h2>$900</h2>
					<p>Plays similar to a Trumpet</p>
					<p>Great for Jazz Bands</p>
					<p>Lorem ipsum dolor.</p>
					<p>Lorem ipsum.</p>
				</div>
				<input type="submit" value="select" name="select">
			</div>
		</section>
		<footer>
			<div>
				<ul>
					<li><a href="#">Privacy</a></li>
					<li><a href="#">Terms</a></li>
					<li><a href="#">Contact</a></li>
				</ul>
			</div>
			<p>Copyright &#x00A9; 2018, Original Trombones by Sid(frontEndWebDeveloper)</p>
		</footer>	
	</main>
</body>
</html>
              
            
!

CSS

              
                body{
	margin: 0px;
	padding: 0px;
	background:#EEEEEE;
}
#header{
	position:fixed;
	top:0px; 
	margin:20px;
	display: flex;
	width: 100%;
	flex-wrap: nowrap;
	justify-content:space-between;
}
#header-img{
	width:300px;
	position: relative;
	top:10px;
}
#nav-bar{
	width:600px;
	max-width:100%;
	display: flex;
	justify-content: flex-end;
}
#nav-bar ul{
	list-style-type: none;
	margin-right: 30px;
	width:70%; 
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}
#nav-bar ul li .nav-link{
	text-align: center;
	display: inline-block; 
	width:100px;
	margin:auto;
	text-decoration: none;
	color:black;
}

@media screen and (max-width: 500px){
	#header{
		flex-wrap: wrap;
 		flex-direction: column;
 		justify-content: center;
 		align-items: center;
 		margin:0px auto;
 		background:#eee; 
 		z-index:1;
 	}
 	#header-img{
 		width:100%;
 		max-width: 250px; 
  	}
 	#nav-bar {
 		justify-content: center;
 		width:50%;
 	}
 	#nav-bar ul li a{
 		margin-top: 10px;
 	}
 	main{
 		width: 100% !important;	
 	}
}
main{
	width:80%;
	margin: 130px auto 0px;
}
.s-1{
	margin-top:30px; 
	text-align:center;
	width:100%; 
}
section input[type=email]{
	height:20px;
	max-width:270px; 
	width:80%;
}
input[type=submit]{
	display: block;	
	margin-top: 10px;
	background: #EECE10FF;
	font-size: 15px;
	text-transform: uppercase;
	font-weight: bolder;
	border:0px solid transparent;
	height:30px; 
	padding:10px;
	padding-bottom:25px;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	border-radius:4px;
}
input[type=submit]:hover{
	background: rgb(255,140,0);	
	transition: background 1.3s;
}
.main-container{
	width: 100%;
	margin:40px auto; 
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;	
}
.icon{
	width:20%;
	align-self: center;
	text-align: center;
	font-size: 15px;
	color: orange;
	margin-bottom: 20px;
}
.i-1{
	order:0;
}
.descrp{
	width:80%; 
	margin-bottom: 20px;
}
.descrp p{
	margin-top:-15px;
}
.d-1{
	order:1;
}
.i-2{
	order:2;
}
.d-2{
	order:3;
}
.i-3{
	order:4;
}
.d-3{
	order:5;
}
@media screen and (max-width: 550px){
	.icon{
		display: none;
	}
	.descrp{
		width: 100%;
		text-align: center;
	}
}
.info{
	width:90%;
	display: flex;
	justify-content: center;
	margin:auto;
	margin-bottom: 50px;
}
.price{
	text-align: center;
	display: flex;
	flex-wrap: wrap;
	width:80%;
	margin: auto;
	margin-top: 50px;
}
.price .equip{
	width:32%;
	border:1px solid black;
	margin:auto;
}
.price .equip-head{
	background:#ddd;
	width:100%;
	height:40px;
	margin-top: -22px;
}
.price h4{
	position: relative;
	top:10px;
}
.price input[type=submit]{
	width:100px;
	margin-bottom: 20px;
}
@media screen and (max-width: 800px){
	.price{
		flex-direction: column;	
	}
	.price .equip{
		width:70%;
		margin-bottom:50px;
		min-width: 250px;
	}
}
footer{
	margin-top:30px;
	background:#ddd;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-wrap: nowrap;
}
footer ul {
	list-style: none;
	margin: 8px;
}
footer ul li {
	display: inline-block;
	width:70px;
}
footer ul li a{
	color:#000;
	text-decoration: none;
}
footer p {
	margin: 0px;
	margin-bottom: 8px; 
	align-self: flex-end;
	text-align: right;
}
              
            
!

JS

              
                
              
            
!
999px

Console