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 URLs 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 its URL and the proper URL extension.
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 esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM 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.
</head>
<body>
<section id="content">
<img class="littleico1" src="" width="54" height="55" alt="">
<img class="littleico2" src="" width="54" height="55" alt="">
<img class="littleico3" src="" width="54" height="55" alt="">
<img style="border-bottom: 1px black solid;" src="https://file.garden/ZWlUCY4S7Xz2vypS/themes/sxn%20is%20love/headers/header%20blank.gif" width="695" height="251" alt="A blank header template.">
<header> [Insert Header Here] </header>
<div class="leftnav">
<table>
<tr>
<th>Navigation</th>
</tr>
<tr>
<td>
<ul>
<li>
<a href="">Link</a>
</li>
<li>
<a href="">Link</a>
</li>
<li>
<a href="">Link</a>
</li>
<li>
<a href="">Link</a>
</li>
<li>
<a href="">Link</a>
</li>
<li>
<a href="">Link</a>
</li>
<li>
<a href="">Link</a>
</li>
<li>
<a href="">Link</a>
</li>
<li>
<a href="">Link</a>
</li>
<li>
<a href="">Link</a>
</li>
</ul>
</td>
</table>
<table>
<tr>
<th>Links</th>
</tr>
<tr>
<td>
<ul>
<li style="margin-bottom: 2px;">The following are links to the original site layout, my site, and the credit for the art used here. You MUST keep these links somewhere on your page! You can only remove the link the artist if you use a different header.</li>
<li style="text-align: center;">
<a href="https://x.com/tam_e_lee" target="blank" title="tam_e_lee">
<img src="https://file.garden/ZWlUCY4S7Xz2vypS/themes/sxn%20is%20love/credits/tameleecreditsimg.jpeg" width="52" height="52" alt="tam e lee credits image">
</a>
</li>
<li style="text-align: center;">
<a href="https://pixelmoondust.neocities.org" target="_blank" title="PixelMoondust">
<img src="https://file.garden/ZWlUCY4S7Xz2vypS/themes/sxn%20is%20love/credits/button%202.0%20gif!!!.gif" width="88" height="31" alt="PixelMoondust 88x31 credits button">
</a>
</li>
<li style="text-align: center;">
<a href="https://web.archive.org/web/20120211190800/http://sasuxnaruislove.snowfaerie.net/index.php" target="_blank" title="SasuxNaru.is.Love.snowfaerie.net">
<img src="https://file.garden/ZWlUCY4S7Xz2vypS/themes/sxn%20is%20love/credits/sxnislovecredit.gif" width="152" height="25" alt="SasuxNaru.is.Love's credits banner">
</a>
</li>
</ul>
</td>
</tr>
</table>
<table>
<tr>
<th>Sample</th>
</tr>
<tr>
<td>
<ul>
<li>I think a visits counter would look really nice in one of these!</li>
</ul>
</td>
</tr>
</table>
<table>
<tr>
<th>Sample</th>
</tr>
<tr>
<td>
<ul>
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy.</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="rightcont">
<h1> Header 1 </h1>
<p>
<img style="float: left; margin-right: 3px; border: black 1px solid;" height="101" width="101">
</p>
<p> A note about this header section, if you use an icon like I do; you will need to have enough text here to have space for the icon. This text portion isn't a set wifth, so if you don't have enough text this header will run into the next section :( If you don't have enough text, you can include as many breaks as you need in order to fill the space! <br>
<br>
<br>
</p>
<h1> Header 2 </h1>
<p> Please use as many or as few headers as you need to! There is so minimum or maximum length to these (aside from the top one if you're using an image) so you can add as much or as little text to each section. What will you write on your site?</p>
<h1> Header 3 </h1>
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy.</p>
<h1> Header 4 </h1>
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy.</p>
<h1> Header 5 </h1>
<p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy.</p>
</div>
</section>
<footer id="footer">
<div class="footercontent">
<!-- You can remove this disclaimer if you remove all the fanart and references to the characters from your site. -->
<strong>Disclaimer:</strong> Uchiha Sasuke and Uzumaki Naruto belong to Masashi Kishimoto, Shueisha, and TV Tokyo. <br>
<!-- Do NOT remove these credits!!! You can ONLY remove the art credits if you change the header. Otherwise, leave this section alone. --> Layout re-created, with ♡, by <a style="color: #f8af74;" href="https://pixelmoondust.neocities.org/home" target="_blank" title="Pixel Moondust☽☾">Luna</a>, 2024 - This layout is based on the layout for SasuxNaru.Is.Love, a now defunct scanlation group from the early 2000's <br> Header art is by <a style="color: #f8af74;" href="https://x.com/tam_e_lee" target="_blank" title="tam_e_lee">tam_e_lee</a> over on twitter / x! Please do check her work out if you like the header :3 <br>
<strong>Original layout © Leetdood & Winde from the original SasuxNaru.is.Love site, 2005</strong>
<br>
</div>
</footer>
</html>
<!DOCTYPE html>
<html lang="en-CA">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale 1.0">
<meta name="author" content="Luna">
<meta name="description" content="A recreation of SasuxNaru.is.Love, a doujin scanlation site from the early 2000's.">
<title>[Your Title Goes Here]</title>
<link rel="icon" href="">
<link rel="stylesheet" href="">
<style>
/* FONTS */
@font-face {
font-family: "worstveld";
src: url("") format("truetype");
}
/* FONTS END */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
/* LINKS & POINTER */
a {
color: black;
cursor: crosshair;
text-decoration: none;
}
a:visited {
color: black;
text-decoration: none;
}
a:hover {
color: #b1c9f8;
text-decoration: none;
}
a:active {
color: #b1c9f8;
text-decoration: none;
}
/* LINKS ENDS */
/* BODY */
html,
body {
max-width: 100vw;
height: 100%;
overflow-y: scroll;
overflow-x: hidden;
scrollbar-color: #465071 #587bbe;
font-family: "Verdana", sans-serif;
font-size: 10px;
background-color: #6699cc;
color: black;
cursor: default;
}
/* PARAGRAPH */
p {
margin-bottom: 10px;
margin-top: 10px;
}
/* HEADER & HEADER ICONS */
header {
position: absolute;
display: block;
top: 174px;
right: 12px;
font-family: "worstveld";
font-size: 81px;
font-style: italic;
color: #b5ceff;
/* The following tags are all optional for the text in the header; you can choose or omit whatever you like*/
-webkit-text-stroke-width: 1px; /* This is for the text outline */
-webkit-text-stroke-color: black;
text-shadow: 4px 4px 1px #192a22;
}
.littleico1 {
position: absolute;
display: block;
width: 54px;
height: 55px;
top: 16px;
left: 11px;
border: 2px black solid;
border-radius: 5%;
box-shadow: 4px 4px 8px black;
}
.littleico2 {
position: absolute;
display: block;
width: 54px;
height: 55px;
top: 16px;
left: 80px;
border: 2px black solid;
border-radius: 5%;
box-shadow: 4px 4px 8px black;
}
.littleico3 {
position: absolute;
display: block;
width: 54px;
height: 55px;
top: 16px;
left: 149px;
border: 2px black solid;
border-radius: 5%;
box-shadow: 4px 4px 8px black;
}
/*
.littleico4 {
position: absolute;
display: block;
width: 54px;
height: 55px;
top: 16px;
left: 218px;
border: 2px black solid;
border-radius: 5%;
box-shadow: 4px 4px 8px black;
}
I have made 3 of these for you to use, but you can add as many as you like! If you want to add more, simply copy the above code and add 69px to the left section to have an equal spacing among them. I've provided this 4th one in case you have trouble adding one on your own.
*/
/* MAIN CONTENT */
#content {
position: relative;
display: inline-block;
width: 695px;
min-height: 100%;
left: -347.5px;
right: -347.5px;
background-color: #587bbe;
margin-top: 9px;
margin-right: 50%;
margin-left: 50%;
outline: black 1px solid;
font-family: "Verdana", sans-serif;
text-align: justify;
}
/* LEFT SIDE */
.leftnav {
position: relative;
display: inline-block;
width: 204px;
height: fit-content;
top: 3px;
margin-left: 5px;
float: left;
}
table {
width: 200px;
background-color: #858ca2;
margin-bottom: 12px;
border: 1px solid;
border-collapse: separate;
border-spacing: 1px;
font-family: "Verdana", sans-serif;
font-size: 10px;
}
td {
width: 196px;
background-color: #587bbe;
padding-top: 1px;
padding-bottom: 1px;
padding-left: 1px;
border: 1px solid;
text-align: left;
}
td.center {
width: 196px;
background-color: #587bbe;
padding-top: 2px;
padding-bottom: 0;
padding-left: 1px;
border: 1px solid;
text-align: center;
}
th {
background-color: #858ca2;
padding: 1px;
border: 1px solid;
text-align: center;
}
ul {
list-style-type: none;
}
/* LEFT END */
/* RIGHT CONTENT */
.rightcont {
position: relative;
display: inline-block;
width: 473px;
height: fit-content;
top: 3px;
margin-right: 10px;
float: right;
}
h1 {
border: 1px black solid;
font-size: 10px;
font-family: "Verdana", sans-serif;
}
/* RIGHT END */
/* FOOTER */
#footer {
position: relative;
bottom: 0;
margin-bottom: 9px;
margin-top: 1px;
text-align: center;
}
.footercontent {
position: relative;
width: 620px;
left: -310px;
bottom: 0;
margin-left: 50%;
text-align: center;
}
/* FOOTER END */
/* TEXT SELECT HIGHLIGHT */
::-moz-selection {
color: #587bbe;
background: rgba(42, 12, 84, 0.8);
}
::selection {
color: #587bbe;
background: rgba(42, 12, 84, 0.8);
}
</style>
Also see: Tab Triggers