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.
<nav id="navbar">
<header><h3>Divine Beasts & Ganon</h3></header>
<ul>
<a class="nav-link" href="#The_Divine_Beasts_of_BotW"><li>The Divine Beasts of BotW</li></a>
<a class="nav-link" href="#Vah_Ruta"><li>Vah Ruta</li></a>
<a class="nav-link" href="#Vah_Medoh"><li>Vah Medoh</li></a>
<a class="nav-link" href="#Vah_Rudania"><li>Vah Rudania</li></a>
<a class="nav-link" href="#Vah_Naboris"><li>Vah Naboris</li></a>
<a class="nav-link" href="#Ganon"><li>Ganon</li></a>
</ul>
</nav>
<main id="main-doc">
<section id="The_Divine_Beasts_of_BotW" class="main-section">
<header><h2>The Divine Beasts of BotW</h2></header>
<article>
<p>The Divine Beasts were designed millenia ago by the Sheikah in order to fight Ganon in a previous incarnation. They are massive technological accomplishments, and awesome weapons, wonderous to behold.</p>
<p>Built to suit the environments of the four corners of Hyrule, each Divine Beast is designed to be piloted by a single hero from the civilizations of those environments.</p>
</article>
</section>
<section id="Vah_Ruta" class="main-section">
<header><h3>Vah Ruta</h3></header>
<article>
<li>Domain: Zora</li>
<li>Original Pilot: Princess Mipha</li>
<li>Current Pilot: Waterblight Ganon</li>
<p>Vah Ruta resides in the East Reservoir Lake, and takes the form of a massive elephant. Designed for use by the Zora, and named after the Zora Sage Princess Ruto, it has the ability to perpetually generate water, and shoot it from its mighty trunk.</p>
<p>A century before the events of BotW Princess Zelda charges the Zora Princess Mipha to pilot Vah Ruta in the upcoming confrontation with Ganon. Unfortunately Mipha is defeated by Waterblight Ganon, and Vah Ruta is overtaken by Ganon's blight.</p> <code> HP of Waterblight Ganon = 800hp </code>
</article>
</section>
<section id="Vah_Medoh" class="main-section">
<header><h3>Vah Medoh</h3></header>
<article>
<li>Domain: Rito</li>
<li>Original Pilot: Revali</li>
<li>Current Pilot: Windblight Ganon</li>
<p>Vah Medoh resides on the Tabantha Frontier, and takes the form of a giant eagle. Designed for use by the Rito, and named after the ancient earth sage Medli, it has the ability to generate massive wind gusts from its wings.</p>
<p>One hundred years before the events of BotW Vah Medoh was to be piloted by the Rito hero Revali, famed for his courage, and archery, if not his humility. These traits were not enough to save him in his confrontation with Windblight Ganon, who possessed Vah Medoh after defeating Revali.</p>
<code> HP of Windblight Ganon = 800hp </code>
</article>
</section>
<section id="Vah_Rudania" class="main-section">
<header><h3>Vah Rudania</h3></header>
<article>
<li>Domain: Goron</li>
<li>Original Pilot: Daruk</li>
<li>Current Pilot: Fireblight Ganon</li>
<p>Vah Rudania resides on the side of Death Mountain, in the Eldin Mountain range, and at the start of BotW is causing repeated eruptions from the mountain, raising the temperature in the Goron city to unbearable degrees. Taking the form of a monstrous salamander, Vah Rudania's name is an homage to the ancient Goron Sage of Fire, Darunia.</p>
<p>The intended pilot for Vah Rudania was the amiable Goron hero Daruk. The Goron hero was overtaken by Fireblight Ganon, and his spirit cannot rest until Vah Rudania is freed from the blight the Hylian Link. Once freed, Daruk looks forward to ceasing the eruptions in his homeland, and turning the great weapon on Ganon himself.</p>
<code> HP of Fireblight Ganon = 800hp </code>
</article>
</section>
<section id="Vah_Naboris" class="main-section">
<header><h3>Vah Naboris</h3></header>
<article>
<li>Domain: Gerudo</li>
<li>Original Pilot: Urbosa</li>
<li>Current Pilot: Thunderblight Ganon</li>
<p>Vah Naboris roams the desserts of the Gerudo, creating a constant sand storm around itself to fend off any future intruders. Named after Nabooru, the Sage of Spirit, Naboris is in the shape of a titanic camel.</p>
<p>Vah Naboris' pilot was supposed to be the Gerudo heroin, Urbosa, master of offense. Despite Urbosa's more than formiddable fighting capabilities, she is defeated by an experienced Thunderblight Ganon, further adding to her despise of the incarnation evil that hails from her home.</p>
<code> HP of Thunderblight Ganon = 800hp </code>
</article>
</section>
<section id="Ganon" class="main-section">
<header><h3>Ganon</h3></header>
<article>
<p>Ganon is the incarnation of evil, originally born in the Gerudo Valley, ancient even before the events that led to the construction of the Divine Beasts 10,000 years ago. Holder of the Triforce of Power, he is mighty, legendary, and near-immortal. His familiarity due to being defeated by the Divine Beasts, and the weilders of the Courage and Wisdom Triforces greatly aided him in conquering the intended pilots of the Divine Beasts at this time.</p>
<p>Ganon is currently being contained by Princess Zelda at Hyrule castle, and has been for the last 100 years as Link, the chosen of the Sword that Seals the Darkness recovered from near mortal wounds suffered when Ganon manifested yet again. As Zelda's seal weakened over the last century Ganon's influence has become stronger, and more pervasive across Hyrule. This allows him to ressurect slain monsters during the Blood Moon, and create more powerful versions of them to match Link's restoration, and progression.</p>
<code> HP of Calamity Ganon = 8000hp </code>
</article>
</section>
</main>
@import url('https://fonts.googleapis.com/css?family=Patua+One|Macondo+Swash+Caps');
html,body {
margin:0;
padding:0;
background-color: #191919;
}
#navbar {
height: 100%;
width: 25%;
top: 0;
background-color: #191919;
position: fixed;
text-align: center;
border-right: 3px groove;
border-color: #fe7a37;
font-family: "Patua One", san-serif;
}
#navbar header {
font-family: "Macondo Swash Caps", cursive;
font-weight: bold;
color: #fe7a37;
border-bottom: 2px groove;
border-color: #fe7a37;
}
#navbar ul {
padding: 0 10px;
}
#navbar li {
padding: 10px;
list-style: none;
}
#navbar a {
text-decoration: none;
color: #1DCAD7;
}
main {
margin-left: 25%;
width: 75%;
margin-top: -13px;
background-color: #191919;
height: 102%;
color: #1DCAD7;
border: 3px groove;
border-color: #fe7a37;
padding: 1px;
font-family: "Patua One", cursive;
overflow-x: hidden;
border-bottom: none;
Position: fixed;
}
#main-doc header {
text-align: center;
text-decoration:underline;
color: #fe7a37;
font-family: "Macondo Swash Caps", cursive;
Font-weight: bold;
}
#main-doc li {
text-align: center;
list-style: none;
}
#main-doc p {
padding: 10px;
}
code {
display: block;
text-align: center;
padding-bottom: 10px;
}
@media (max-width: 650px) {
main {
margin-left: 0;
padding-top:40px;
width: 98.7%;
height: 90%;
position:static;
}
.main-section {
padding-top:12%;
}
#navbar {
height: 10%;
width: 99%;
border-bottom: 3px groove;
border-left: 3px groove;
border-right: 3px groove;
border-color: #fe7a37;
overflow-y:hidden;
}
#navbar header {
line-height: 1px;
padding-top: 0;
font-size: 1em;
height: 1px;
border: none;
}
nav ul {
font-size:calc(8px + 0.3vw);
}
.nav-link li {
display: inline;
margin: -3px;
}
#main-doc header {
font-size: 1em;
}
}
Also see: Tab Triggers