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>

<!DOCTYPE html>
<html>

<!--<div id="page-wrapper">-->

	<head>
		<title>Product Landing Page</title>
		<link rel="stylesheet" type="text/css" href="fcc product.css">
	</head>
	


	<body>
		
		<header id="header">
				<div class="logo">
					<img id="header-img" src="jdm.jpg" alt="JDM Car Scene">
				</div>	
					
					<nav id="nav-bar">
						<ul>
							<li><a class="nav-link" href="#stories">Stories</a></li>
							<li><a class="nav-link" href="#classifieds">Classifieds</a></li>
							<li><a class="nav-link" href="#vid">Forums</a></li>
						</ul>
					</nav>
		</header>



		<div id="container">		


			<section id="about">
				
				<h2>We are mad about all things JDM! If you share our passion, sign up for our newsletter below.</h2>

				<form id="form" action="https://www.freecodecamp.com/email-submit">
					<input id="email" type="email" name="email" placeholder="Enter Email Address" required/>
					<br>
					<input id="submit" type="submit" value="Subscribe" class="btn">
				</form>

			</section>


														<hr>
			<section class="grid1" id="stories">

					<div id="latest"><h3>Latest Stories</h3></div>
					
					<div><img src="supra.jpg" alt="2019 Toyota Supra"></div>
					
					<div><h4>New Supra</h4><p>Here's what we learnt about the 2019 Toyota Supra from the 2018 Geneva Motor Show.</p></div>

					<div><img src="culture.jpg" alt="JDM Car Culture"></div>
					
					<div><h4>Tokyo Visit</h4><p>Apparently, Japanese car culture is dead. We travelled to Tokyo to seek the truth.</p></div>
					
					<div><img src="90s.jpg" alt="JDM Cars of the 90's"></div>
					
					<div><h4>90s Favourites</h4><p>An awesome era for JDM cars. We share our opinons on our favourites from the 90's.</p></div>

			</section>

													<hr>

			<section id="vid">

				<h3>Video of the Week</h3>

				<iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/MTKjztv6Z94" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

			</section>

												<hr>
			<h3 class="title">Classifieds</h3>
			<section class="grid2" id="classifieds">
				
				<div>
					<a href="#">
					<h5 class="nest">Toyota MR2 Turbo</h5>
					<img class="nest" src="mr2.jpg" alt="Picture of Car">
					</a>
					<h5 class="nest">£2650</h5>
					<p class="nest">1994 import MR2 GT. Hybrid turbo. Around 300bhp. Complete sill rebuild 2 years ago, documented with photos. Very fast car...</p>

				</div>
				

				<div>
					<a href="#">
					<h5 class="nest">Honda Civic Type R</h5>
					<img class="nest" src="civic.jpg" alt="Picture of Car">
					</a>
					<h5 class="nest">£3000</h5>
					<p class="nest">2005 Civic Type R premier edition. 120k miles. Full Service History. Recent timing chain replacement. Spoon Stainless backbox...</p>

				</div>


				<div>
					<a href="#">
					<h5 class="nest">Honda CB650F</h5>
					<img class="nest" src="cb650f.jpg" alt="Picture of Bike">
					</a>
					<h5 class="nest">£3495</h5>
					<p class="nest">2017 Honda Hornet. Naked bike, excellent condition, with just 5000 miles on clock...</p>

				</div>
					
					

			</section>


		</div>

		<footer id="footer">
			<p>Copyright 2018, Worldwide Smeg</p>
		</footer>


	</body>



<!--</div> End of page wrapper div-->



</html>
              
            
!

CSS

              
                *{
	margin:0;
	padding:0;
	box-sizing:box-border;
}

body{
	background-color:white;
	font-family:helvetica;
}



#header {
	display:flex;
	position:fixed;
	top:0px;
	left:0px;
	margin:0;
	width:100%;
	height:80px;
	justify-content:space-between;
	background-color:white;
	align-items:center;
	border-bottom:red solid 2px;
}

#header-img {
	height:80px;
}

#nav-bar{
	width:1fr;

}

#nav-bar a{
	color:black;
}

#nav-bar a:hover{
	color:red;
}

#nav-bar li {
	display:inline;
	padding:0.5em 1.3em;
	background-color:white;
	color:black;
	font-weight:bold;
}

#about {
	margin-top:100px;
	width:80%;
	text-align:center;
	background-color:white;
	margin-left: 10%;
	margin-right:10%;
}

#about h2 {
	line-height:1.3;
}

#email {
	margin-top:15px;
}

#submit {
	color:white;
	background:red;
	padding: 0.5em;
	margin:10px;
	border:black solid black 1px;
	border-radius:5px;

}

#stories{
	display:grid;
	grid-template-columns:1fr 5fr;
	margin:20px 25%;
	grid-gap:1em;
	align-items:center;
	line-height:1.4;
}


#latest {
	grid-column:1/3;
	justify-self:center;
}

#stories img{
	width:150px;
	height:auto;
	border-radius:5px;
	box-shadow:0 0 15px 5px red;
}

					@media (max-width:800px) {
					#stories {
						margin:20px 10%;
					}

					#header{
							flex-direction:column;
							height:auto;
							padding-bottom:12px;
					}
					#about{
						margin-top:130px;
					}

					#about h2{
						font-size:1.2em;
					}
					}



.gap {
	height:10000px;
}

#vid{
	background:none;
	text-align:center;
}

#vid h3 {
	margin:15px 0;
}

#vid iframe{
	margin-bottom: 15px;
}

.grid2{
	display:grid;
	grid-template-columns:1fr 1fr 1fr;
	grid-gap:10px;
	max-width:600px;
	text-align:center;
	align-content:space-around;
	margin:auto;
}

.grid2 div{
	border:black 2px solid;
	padding:10px;
	border-radius:5px;
}


.title {
	text-align:center;
	margin-top:20px;
	margin-bottom:5px;
}


#classifieds img{
	height:100px;
	margin:5px;
}

#classifieds a {
	color:black;
}

#classifieds p{
	font-size:0.9em;
	margin-top:10px;
}

#footer {
	background:black;
	color:white;
	margin-top: 40px;
	height:60px;
	text-align:right;
	vertical-align:end;
}

#footer p {
	padding-top:40px;
	padding-right:10px;
}

a{
	text-decoration:none;
}


					@media (max-width:560px){
						#video {
							width:100%;
							height:auto;
						}
						#stories p {
							font-size:0.8em;
						}
						#about{
							width:90%;
							margin-left:5%;
							margin-right:5%;
						}
						#classifieds img{
							height:70px;
						}
					}
              
            
!

JS

              
                
              
            
!
999px

Console