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 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://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js"></script>

<header id="header">
	<nav id="nav-bar">
	<div id="logo"><img src="https://tzxxoa.dm.files.1drv.com/y4mdkrpb8bb3Ygq4BCYHP0AqIRilK7415CcW1l4EWpbZ2_irf2WsXpJBy9UuHS_kQ0c8_58coZ78Q-LlGPzBtEBBdYdjnDtq3XbaAkmGn3lFRtYSzJboZ8ZtO-Bt0sO7EhRPoT22RfXkU0YRbJLOiGWLzLdtKxJ7Daqzr31atBaPdEj5wutcZBRvm175wSUJheTZaGgfpX26ukhyL0aqiqa2Q?width=1920&height=1432&cropmode=none" id="header-img" alt="Waxy Fake Logo - Vintage illustration of lady waxing car." />
	</div>

	<div id="page-links">
		<a class="nav-link" href="#video">Demo</a>
		<a class="nav-link" href="#product-specs">Specs</a>
		<a class="nav-link" href="#product-sold">Where To Buy</a>		
	</div>
	</nav>
	<h1 id="page-title">Waxy Wax</h1>
</header><!-- header end -->

<div id="main">
	<div id="cta-container" style="background: #c8c8c8;">
		<h2>Our <span style="color: purple; font-weight: 900;">Wax</span> Makes the <em>"Dents"</em> <span style="color: purple; font-weight: 900;">Look New</span></h2>
		
		<p class="subtitle">Compare and Contrast</p>
		
		<div style="text-align: center; color: purple;"><i class="fas fa-eye fa-7x" style="text-align: center;"></i></div>
		
		<p class="cta">Wax your car with your <b><u>favorite brand</u></b> of wax. Shine up your hood with a <b><u>free sample</u></b> of <span style="color: purple; font-weight: 800; font-size: 1.3em;"><strong><em>Waxy</em></strong></span>.</p>
				<form id="form" action="https://www.freecodecamp.com/email-submit">
			<div id="sample-signup">
			<input type="email" name=email id="email" placeholder="For a free sample, enter your e-mail address." required />
			<input type="submit" id="submit" value="Submit" title="Your email is not being stored and there are no samples.">
			</div>
		</form>
    <p class="testimonial">Got your sample? Waxed a section for comparision? Don't keep it to yourself? Please share a <a href="#" title="there really isn't a testimonial page.">Testimonial</a>.
	</div>

<div id="product-section">
	<div id="product-demo">
		<h2 style="text-transform: uppercase; text-align: center; padding-bottom: 5px;">It's car wax, sold in <span style="color: purple; font-weight: 800; font-size: 1.1em;"><u>3</u> different sizes</span>.</h2>
		
		<h3 style="font-family: 'Fredoka One', cursive; text-align: center;">We sell it in a can (but we call the container a tub)...Because it's a can of car wax. That's why we call it <span style="color: purple; font-weight: 800; font-size: 1.3em;"><strong><em>Waxy</em></strong></span>.</h3>
		<p class="spec-text"><b>We're <u>using</u></b> <a href="http://www.catipsum.com/" style="color: green;" title="We love kitties...Check them out for your next project.">Cat Ipsum</a> text...Yeah!</p>
		
		<p class="spec-text">Need to chase tail purr while eating nap all day. Sit on the laptop demand to be let outside at once, and expect owner to wait for me as i think about it but jump on human and sleep on her all night long be long in the bed, purr in the morning and then give a bite to every human around for not waking up request food, purr loud scratch the walls, the floor, the windows, the humans lick butt claw at curtains stretch and yawn nibble on tuna ignore human bite human hand eat prawns daintily with a claw then lick paws clean wash down prawns with a lap of carnation milk then retire to the warmest spot on the couch to claw at the fabric before taking a catnap for purr while eating.</p>
	
		<div id="how-to" style="background: #c8c8c8; padding: 8px;">
		<h2 style="text-transform: uppercase; text-align: center; padding-bottom: 5px;">A short primer on how to use <span style="color: purple; font-weight: 800; font-size: 1.1em;"><u>Waxy Wax</u></span>.</h2>
	
		<div style="margin-top: 15px; margin-bottom: 15px;" title="HERE ARE 3 EASY STEPS ON HOW TO PROPERLY WAX YOUR VEHICLE...">
		<iframe width="560" height="315" src="https://www.youtube.com/embed/yGp-WwnRRLk" frameborder="0" allow="autoplay; encrypted-media" style=" display: block; margin-left: auto; margin-right: auto; border: 5px groove;" id="video" allowfullscreen></iframe>
		</div>
		</div><!-- video section end -->
	</div>
	
	<h2 style="text-transform: uppercase; text-align: center; padding-bottom: 5px;">We've got your pricing...buy <span style="color: purple; font-weight: 800; font-size: 1.1em;"><strong>Waxy Wax</strong></span> at these awesome prices.</h2>
	
	<div id="product-specs">
		<div class="spec-card">
			<p class="spec-title"><strong>Waxy Wax Weeny-Tub</strong></p>
			<p class="spec-title"><strong><em>$25.99</em></strong></p>
			<i class="fas fa-database fa-4x"></i>
			<p class="spec-size">Stand in doorway, unwilling to chose whether to stay in or go out.</p>
		</div>
		
		<div class="spec-card">
			<p class="spec-title"><strong>Waxy Wax Pouchy-Tub</strong></p>
			<p class="spec-title"><strong><em>$41.98</em></strong></p>
			<i class="fas fa-database fa-5x"></i>
			<p class="spec-size">Sniff catnip and act crazy pounce on unsuspecting person.</p>
		</div>
		
		<div class="spec-card">
			<p class="spec-title"><strong>Waxy Wax Tubba-Tub</strong></p>
			<p class="spec-title"><strong><em>$62.49</em></strong></p>
			<i class="fas fa-database fa-6x"></i>
			<p class="spec-size">The fat cat sat on the mat bat away with paws meow go back to sleep.</p>
		</div>
	</div>

	<p class="spec-text">See owner, run in terror go into a room to decide you didn't want to be in there anyway. Mesmerizing birds eat the rubberband so attempt to leap between furniture but woefully miscalibrate and bellyflop onto the floor; what's your problem? i meant to do that now i shall wash myself intently milk the cow or annoy owner until he gives you food say meow repeatedly until belly rubs, feels good but fish i must find my red catnip fishy fish. I like big cats and i can not lie.</p>
	
	<div id="product-sold" >
		<h2 style="text-transform: uppercase; text-align: center; padding-bottom: 5px;">Purchase <span style="color: purple; font-weight: 800; font-size: 1.1em;"><strong>Waxy Wax</strong></span> online or at the following Retailers.</h2>
	
	<div id="product-shop">
	<div class="shop">
	ACE Hardware &#40;New York City&#41;
	</div>
	
	<div class="shop" style="background-color: #c8c8c8;">
	Hoekum Hardware &#40;New York City&#41;
	</div>
	
	<div class="shop" style="margin-right: 0;">
	Carter's Hardware &#40;The Bronx, New York&#41;
	</div>
	</div><!-- product shop end -->
	</div>
	

</div><!-- product-section end -->
	
</div><!-- main end -->
<article style="background-color: #333333; color: #f8f8f8; padding: 12px; font-size: .85em; line-height: 1.65em; margin-top: 15px;">This is a <a href="https://www.freecodecamp.org/" title="Visit Free Code Camp." target="_blank" style="color: pink">Free Code Camp</a> assignment. This product doesn't exist. Good Lord, I'm building quite a portfolio though. I haven't styled the links and this page is not a representation of how I'd create a web page. We're only focusing on the nuts and bolts of an assignment. FYI- The video is from a real YouTube Channel. Enjoy and thank you Free Code Camp.</article>
              
            
!

CSS

              
                body { 
	font-family: 'Montserrat', sans-serif;
	padding: 0 8px;
	color: #333333;

}

#main {
	background-color: #e8e8e8;
  margin-top: -43px;
	
}

#header {
	position: relative;
	min-height: 275px;
	margin-top: 0;
	background-color: purple;
}


#nav-bar {
	position: fixed;
	top: 0;
	display: flex;
	background-color: purple;
	justify-content: flex-end;
	padding: 8px;
	margin-right: 16px;

	
}

#logo {
	flex-basis: 100px;
	background-color: pink;
  
	
	


}
#header-img {
width: 90%;
margin-left: 5%;

}

#page-links {

flex-basis: 275px;
align-self: center;
	
}

a.nav-link {
color: pink;
font-family: 'Fredoka One', cursive;
padding: 12px 8px;
}

#page-title {
	color: pink;
	text-align: center;
	font-weight: 900;
	font-size: 4em;
	padding-top: 20vh;
}

h2 {
    display: block;
    font-size: 1.5em;
	padding-top: .83em;
    -webkit-margin-before: 0px;
    -webkit-margin-after: 0px;
	text-align: center;
}

p {
    -webkit-margin-before: 0px;
    -webkit-margin-after: 1em;
}

.subtitle {
	text-align: center;
	font-size: 1.20em;
	font-weight: 700;
	text-align: center;
}

.testimonial {
  font-weight: 600;
  text-align: center;
  padding: 16px 0;
}

#cta-container {
	padding-bottom: .83em;
}
.cta {
	font-size: 18px;
	font-weight: 400;
	text-align: center;
}

#form {
	background-color: pink;
	width: 425px;
	height: 60px;
	padding: 8px;
	margin-left: auto;
	margin-right: auto;
}

#sample-signup {
	text-align: center;
	background-color: purple;
	padding: 8px;
}
input {
	padding: 10px 6px;
}

input[type=email] {
	width: 300px;
}

input[type=submit]{
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 800;
	color: purple;
}

#product-section {
	
}

.spec-text {
	margin-left: 7vw;
	margin-right: 7vw;
	line-height: 1.5em;
	text-align: justify;
}

#product-specs {
	padding: 8px 0;
	display: flex;
	justify-content: center;

}
.spec-card {
	background-color: pink;
	width: 250px;
	padding: 15px;
	border: 5px groove purple;
	margin-right: 15px;
	margin-bottom: 15px;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.spec-card:last-child {
	margin-right: 0;
}

.spec-title {
	color: purple;
	font-size: 1.1em;
	text-align: center;
}

.spec-size {
	padding: 15px;
	text-align: center;
}

#product-shop {
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 8px;
}

.shop {
	margin-right: 8px;
	background-color: pink;
	color: purple;
	padding: 8px;
	font-weight: 700;
}

@media(max-width: 981px) {
	#page-title {
		font-size: 3em;
	  padding-top: 13vh;
  }
}
              
            
!

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

Console