HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Landing Page 2nd time</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt"
crossorigin="anonymous" />
<link href="LandingPage.css" rel="stylesheet" />
</head>
<body>
<div class="wrapper">
<header id="header">
<div class="cm-logo">
<img id="header-img" src="http://www.spellingpower.com/images/CastlemoyleLogoTransparent.gif" alt="Castlemoyle Books" />
</div>
<nav id="nav-bar">
<ul>
<li>
<a href="#benefits" class="nav-link">features</a>
</li>
<li>
<a href="#options" class="nav-link">pricing</a>
</li>
<li>
<a href="#how-it-works" class="nav-link">about us</a>
</li>
</ul>
</nav>
</header>
<div class="content">
<div id="top">
<h1 style="font-size: 200%;">Spelling Power</h1>
<h3>Receive our free email newsletter!</h3>
<form id="form" action="https://www.freecodecamp.com/email-submit" method="GET">
<label id="name-label" for="name">Your name </label>
<input type="text" name="name" autofocus id="name" placeholder=" Your Name Bub" required />
<br />
<label id="email-label" for="email"> Your email</label>
<input type="email" name="email" id="email" placeholder=" you@domain.com" required />
<p></p>
<input id="submit" type="submit" value="Get Started" ></input>
</form>
<p>
<br /> </p>
<h3>The Only Program You Need to Teach Your Entire Family How to Spell</h3>
</div>
<section id="benefits">
<div class="features">
<div class="features-image">
<i style="font-size: 300%;" class="fas fa-user-clock"></i>
</div>
<div class="features-desc">
<h2 style="margin-bottom: 0;">Using Research Proven Strategies</h2>
<p style="margin-top: 0;">Your students will master the 5,000 most frequently used words at their own pace</p>
</div>
</div>
<div class="features">
<div class="features-image">
<i style="font-size: 300%;" class="fas fa-user-clock"></i>
</div>
<div class="features-desc">
<h2 style="margin-bottom: 0;">Lifetime of Spelling</h2>
<p>Your students will remember their words not just on Friday's test, but for a Lifetime of Spelling Success</p>
</div>
</div>
<div class="features">
<div class="features-image">
<i style="font-size: 300%;" class="fas fa-user-clock"></i>
</div>
<div class="features-desc">
<h2 style="margin-bottom: 0;">What do you think here?</h2>
<p>Your students will remember their words not just on Friday's test, but for a Lifetime of Spelling Success</p>
</div>
</div>
</section>
<section id="how-it-works">
<iframe id="video" height="315" src="https://www.youtube-nocookie.com/embed/Y7GJ3P81wCE?rel=0&controls=0&showinfo=0"
frameborder="0" allowfullscreen></iframe>
</section>
<p style="text-align: center;">Watch the Introduction to the Spelling Power Program</p>
<section id="options">
<div id="manual">
<div class="door-title">Spelling Power Manual</div>
<p>Just the Manual
<br /> Then roll your own
<br /> $64.95
</p>
<p class="btn">Buy now button</p>
</div>
<div id="mini">
<div class="door-title">Spelling Power Mini-Pack</div>
<p style="font-size: 90%; text-align: justify;">The 'Mini-Pack' includes your Spelling Power manual, your choice of two
<i>Student Record Books</i> in your chouce of levels and a set of the
<i>Activity Task Cards</i>.</p> $113.80
<form method="post" action="http://www.justaddcommerce.net/o/order.dll">
<input id="submit" type="submit" value="Buy Now!" class="btn"></input>
<input type="hidden" value="Spelling Power Mini Pack (LP)" name="sku" />
<input type="hidden" value="113.80" name="price" /><input type="hidden" value="Spelling Power Mini-Pack" name="description" />
<input type="hidden" value="3" name="weight" /><input type="hidden" value="yes" name="taxable" />
<input type="hidden" value="castlemoyle.com" name="merchantname" /><input type="hidden" value="0979-0896-4244-R400" name="merchant" />
<input type="hidden" name="jac_shopcolors" value="-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1" />
</form>
</div>
<div id="deluxe">
<div class="door-title">Deluxe Power Pack</div>
<p style="font-size: 90%; text-align: justify;">The Deluxe Pack has It all! In addition to the items to the left, you also get a set of the Magnetic Letter Tiles
in a storage box & a Word Bank Box with 400 color coded cards.</p> $64.95
<p class="btn">Buy now button</p>
</div>
</section>
<footer>
<ul class="ul-footer">
<li class="li-footer">
<a href="#">Shop Now</a>
</li>
<li class="li-footer">
<a href="#">Privacy</a>
</li>
<li class="li-footer">
<a href="#">Contact Us</a>
</li>
</ul>
<p class="copyright">� 2018, Beverly L. Adams-Gordon and Castlemoyle Books</p>
</footer>
</div>
<!-- content -->
</div>
<!-- wrapper of all -->
</body>
</html>
* { box-sizing: border-box;
font-size: 16px;
font-family: Arial, Helvetica, sans-serif;
}
body {
width: 100%;
}
h3 { text-align: center;
Font-size: 125%;
text-indent: 0
}
li { list-style: none; }
a { color: #000; text-decoration: none; }
header {
width: 100%;
position: fixed;
top: 0;
display: flex;
justify-content: space-between;
background-color: #ddd;
}
#header-img { width: 10vw;
}
nav { display: flex;
font-weight: 400;
}
#nav-bar { font-family: Arial, Helvetica, sans-serif;
font-weight: 400;
}
#nav-bar ul {
display: flex;
width: 35vw;
flex-direction: row;
justify-content: space-around;
}
#top {
width: 90%;
margin: auto;
text-align: center;
}
.content {
width: 85%;
margin: auto;
margin-top: 100px; /* allowing for nav-bar at top */
background-color: #ffffe0;
}
/* rows at top to sell */
.features {
display: flex;
}
.features-image {
display: flex;
align-items: center;
justify-content: center;
height: 125px;
width: 20vw;
height: auto;
color: orange;
}
.features-desc {
display: flex;
flex-direction: column;
justify-content: center;
height: 125px;
width: 80vw;
padding: 2%;
}
.features p {
margin-top: -10;
}
#how-it-works {
margin-top: 50px;
display: flex;
justify-content: center;
}
#how-it-works iframe {
max-width: 560px;
width: 100%;
}
}
#video { margin: 0 auto; }
.movie { max-width: 560px; width: 75%; height: auto; margin: auto;}
/* New options done w/ ID not class */
#options
{ margin-top: 60px;
display: flex;
flex-direction: row;
justify-content: center;
}
#manual, #mini, #deluxe {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
width: calc(100% / 3);
margin: 10px;
border: 2px solid #000;
border-radius: 5px;
background-color: wheat;
}
#manual, #mini, #deluxe p {padding: 0 2%;}
.door-title {
font-family: sans-serif;
font-weight: bold;
background-color: yellow;
font-size: 150%;
margin-top: 0;
width: 100%;
}
.btn {
padding: 0.25em 1em .5em 1em;
border: 1px #ccc solid;
display: inline-block;
border-radius: 50px;
text-decoration: none;
background-color: orange;
}
/* Footer */
footer
{
margin-top: 20px;
padding: 10px;
background-color: #dddddd;
}
.ul-footer {
display: flex;
justify-content: flex-end;
width: 100%;;
/* flex-direction: row; */
color: orange;}
.li-footer {
padding: 0 10px;
color: orange; }
.copyright { color: darkgray;
text-align: right;
font-size: 0.9em;}
@media all and (max-width:800px) {
#nav-bar ul {
display: flex;
width: 50vw;
}
#door-container {
flex-direction: column;
}
#options { flex-direction: column;
}
#manual, #mini, #deluxe
{width: 75%;
margin: 20px auto;
}
@media all and (max-width:500px) {
#header-img {
max-width: 300px;
}
nav {flex-direction: column;
}
#nav-bar ul {
display: flex;
width: 35vw;
flex-direction: column;
justify-content: space-around;
}
.topsection {
width: 100%;
}
.features {
display: none;
}
.content {
width: 100%;
}
#door-container {
flex-direction: column;
}
#options {
flex-direction: column;
}
.door { width: 95%;
margin: 20px auto;
}
#manual, #mini, #deluxe
{width: 95%;
margin: 20px auto;
}
/* footer area */
.ul-footer {
display: flex;
justify-content: flex-end;
width: 100%;
flex-direction: column;
color: orange;}
.copyright {text-align: center;}
}
Also see: Tab Triggers