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>

<body>
	<header id="header">
		<div id="header-logo">
			<div class='header-img'>Home-made Kitties!<img id="header-img" src="" alt="">
			</div>
		</div>
		<nav id="nav-bar">
			<ul id="nav-links">
				<li id="to-features" class="nav-links"><a class="nav-link" href="#a-features">Features</a><span id="nav-under-features"></span></li>
				<li id="to-how" class="nav-links"><a class="nav-link" href="#a-how">How It Works</a><span id="nav-under-how"></span></li>
				<li id="to-pricing" class="nav-links"><a class="nav-link" href="#a-pricing">Pricing</a><span id="nav-under-pricing"></span></li>
			</ul>
		</nav>
	</header>
	<main id="main">
		<section id="email-subscription">
			<h1 id="email-heading">Handcrafted, Home-made Kittens</h1>
			<form id="form" action="https://www.freecodecamp.com/email-submit">
				<input id="email" name="email" type="email" placeholder="Enter your email address!">
				<input id="submit" type="submit" value="Sign up for more">
			</form>
		</section>
		<a id="a-features"></a>
		<div id="features">
			<div class="feature-container">
				<i class="material-icons" style="font-size: 4em;">eco</i>
				<article class="feature-text">
					<h2>Eco-friendly</h2>
					<p>Our kitties are fully organic and bio-degradable. You won't have to worry about damaging the environment!</p>
				</article>
			</div>
			<div class="feature-container">
				<i class="material-icons" style="font-size: 4em;">face</i>
				<article class="feature-text">
					<h2>Face Recognition</h2>
					<p>Worried about getting your kitty hacked? Fret no more! Our kitties come with a top-notch face recognition technology, which allows only the authorized users to access them.</p>
				</article>
			</div>
			<div class="feature-container">
				<i class="material-icons" style="font-size: 4em;">bluetooth</i>
				<article class="feature-text">
					<h2>Remote Control</h2>
					<p>No words needed. Connect to your kitten via bluetooth and puppet the most adorable creature in the world!</p>
				</article>
			</div>
			<a id="a-how"></a>
			<iframe id="video" src="https://www.youtube.com/embed/t6guz6WxI9Q" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
		</div>
		<a id="a-pricing"></a>
		<div id="pricing">
			<div class="pricing-box">
				<h2 class="pricing-heading"><span class="pricing-heading-text">Fat Kitty</span></h2>
				<h3 class="pricing-price">$20 per month</h3>
				<label class="pricing-button">
					<input class="pricing-radio" type="radio" name="pricing-button">
					<span class="pricing-radiomark">SELECT</span>
				</label>
			</div>
			<div class="pricing-box">
				<h2 class="pricing-heading"><span class="pricing-heading-text">Fit Kitty</span></h2>
				<h3 class="pricing-price">$15 per month</h3>
				<label class="pricing-button">
					<input class="pricing-radio" type="radio" name="pricing-button">
					<span class="pricing-radiomark">SELECT</span>
				</label>
			</div>
			<div class="pricing-box">
				<h2 class="pricing-heading"><span class="pricing-heading-text">Yum Kitty</span></h2>
				<h3 class="pricing-price">$3,000</h3>
				<label class="pricing-button">
					<input class="pricing-radio" type="radio" name="pricing-button">
					<span class="pricing-radiomark">SELECT</span>
				</label>
			</div>
		</div>
	</main>
	<footer id="footer">
		<nav id="nav-footer">
			<ul id="nav-footer-links">
				<li class="nav-footer-link">Privacy</li>
				<li class="nav-footer-link">Terms</li>
				<li class="nav-footer-link">Contact</li>
			</ul>
		</nav>
		<p id="copyright">&copy;Copyright</p>
	</footer>
</body>
              
            
!

CSS

              
                html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}
body {
	line-height: 1;
}
ol,
ul {
	list-style: none;
}

html {
	font-size: 20px;
	font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
		"Lucida Sans", Arial, sans-serif;
}

body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

a {
	color: black;
	text-decoration: none;
}

#header {
	background-color: rgba(235, 112, 81, 1);
	position: fixed;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	top: 0px;
	left: 0px;
	width: 100vw;
	height: 60px;
	z-index: 10;
}

#header-logo {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	width: 50%;
	height: 100%;
}

.header-img {
	display: inline;
	font-family: "Love Ya Like A Sister";
	margin-left: 5%;
	font-size: 40px;
	font-weight: 700;
	justify-content: flex-start;
}

#nav-bar {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	width: 50%;
	height: 100%;
}

#nav-links {
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	align-items: center;
	width: 90%;
	height: 50%;
	margin-right: 5%;
}

.nav-links {
	font-size: 20px;
	font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

#nav-under-features {
	position: absolute;
	top: 70%;
	margin-left: -120px;
	width: 1px;
	height: 1px;
	background-color: rgb(0, 0, 0);
}

#to-features:hover #nav-under-features {
	animation-name: features;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

@keyframes features {
	0% {
		background-color: rgba(0, 0, 0, 0);
		margin-left: -120px;
		width: 1px;
	}

	50% {
		background-color: rgba(0, 0, 0, 1);
		margin-left: -30px;
		width: 30px;
	}

	100% {
		background-color: rgba(0, 0, 0, 0);
		margin-left: 30px;
		width: 1px;
	}
}

#nav-under-how {
	position: absolute;
	top: 70%;
	margin-left: -180px;
	width: 1px;
	height: 1px;
	background-color: rgb(0, 0, 0);
}

#to-how:hover #nav-under-how {
	animation-name: how;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

@keyframes how {
	0% {
		background-color: rgba(0, 0, 0, 0);
		margin-left: -180px;
		width: 1px;
	}

	50% {
		background-color: rgba(0, 0, 0, 1);
		margin-left: -40px;
		width: 30px;
	}

	100% {
		background-color: rgba(0, 0, 0, 0);
		margin-left: 40px;
		width: 1px;
	}
}

#nav-under-pricing {
	position: absolute;
	top: 70%;
	margin-left: -100px;
	width: 1px;
	height: 1px;
	background-color: rgb(0, 0, 0);
}

#to-pricing:hover #nav-under-pricing {
	animation-name: pricing;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

@keyframes pricing {
	0% {
		background-color: rgba(0, 0, 0, 0);
		margin-left: -100px;
		width: 1px;
	}

	50% {
		background-color: rgba(0, 0, 0, 1);
		margin-left: -20px;
		width: 20px;
	}

	100% {
		background-color: rgba(0, 0, 0, 0);
		margin-left: 20px;
		width: 1px;
	}
}

#main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 60vw;
	margin-top: 120px;
}

#email-subscription {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
}

#email-heading {
	font-family: "Love Ya Like A Sister";
	font-size: 40px;
	text-align: center;
}

#form {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 75%;
}

#email {
	background-color: beige;
	min-width: 300px;
	width: 45%;
	height: 30px;
	margin-top: 20px;
	padding-left: 6px;
	font-size: 20px;
	border: 2px solid black;
}

#submit {
	background-color: rgb(235, 112, 81);
	color: black;
	min-width: 200px;
	width: 25%;
	height: 40px;
	margin-top: 20px;
	font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
	font-size: 20px;
	border: 0px solid black;
	cursor: pointer;
}

#submit:hover {
	transform: scale(1.1);
}

#features {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	max-width: 100%;
	margin-top: 80px;
	margin-bottom: 60px;
}

.feature-container {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 90%;
	margin-bottom: 60px;
}

.material-icons {
	background-color: rgb(235, 112, 81);
	width: 1em;
	height: 1em;
	border: 3px solid black;
	border-radius: 25%;
	margin-right: 0.75em;
}

.feature-text h2 {
	font-family: "Love Ya Like A Sister";
	font-size: 30px;
	font-weight: 700;
}

.feature-text p {
	font-size: 20px;
	font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

#video {
	min-width: 560px;
	min-height: 315px;
	width: 36vw;
	height: 20.25vw;
}

#pricing {
	/*background-color: purple;*/
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 20px 0 20px 0;
}

.pricing-box {
	background-color: beige;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 30%;
}

.pricing-heading {
	background-color: rgba(235, 112, 81, 1);
	width: 100%;
	height: 60px;
	font-family: "Love Ya Like A Sister";
	font-size: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pricing-price {
	width: 100%;
	font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
	font-size: 20px;
	text-align: center;
	padding: 20px 0 20px 0;
}

.pricing-text {
	width: 75%;
	font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
	font-size: 20px;
	line-height: 40px;
	text-align: center;
	padding: 20px 0 20px 0;
}

.pricing-button {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	user-select: none;
	margin: 0 0 30px 0;
}

.pricing-radio {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	width: 0;
	height: 0;
}

.pricing-radiomark {
	background-color: rgb(235, 112, 81);
	position: relative;
	padding: 10px 20px 10px 20px;
	border: 2px solid transparent;
}

.pricing-button:hover .pricing-radiomark {
	border: 2px solid black;
}

.pricing-button .pricing-radio:checked ~ .pricing-radiomark {
	background-color: rgb(228, 75, 36);
	border: 2px solid black;
}

#footer {
	background-color: rgba(235, 112, 81, 1);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-end;
	width: 100%;
	height: 80px;
	margin-top: 60px;
}

#nav-footer {
	/*background-color: yellow;*/
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin-bottom: 10px;
}

#nav-footer-links {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
}

.nav-footer-link {
	margin-right: 20px;
}

#copyright {
	margin-right: 20px;
}

@media (max-width: 1024px) {
	#main {
		width: 90vw;
	}

	html {
		background-image: none;
	}

	#header {
		background-color: rgba(235, 112, 81, 1);
		position: absolute;
		width: 100%;
	}

	#nav-bar {
		display: none;
	}

	#header-logo {
		width: 100%;
		justify-content: center;
	}

	.header-img {
		margin-left: 0px;
	}

	#features {
		margin-top: 40px;
	}

	.material-icons {
		margin-right: 4%;
	}

	#video {
		min-width: 0;
		min-height: 0;
		width: 80vw;
		height: 45vw;
	}

	.pricing-box {
		width: 90%;
	}

	.pricing-price {
		font-size: 16px;
	}

	#nav-links {
		display: none;
}

              
            
!

JS

              
                
              
            
!
999px

Console