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.
<header class="h1top">
<canvas id="myCanvas" width=250 height=50>
<h1>W. C. GALL</h1></canvas>
<div class="col2">
<section>
<p>Prof: BD, CV, Resumé</p>
<p>IHP, SCU, ENY</p>
<p>Room 666-9, TEL</p>
</section>
<section>
<p>SCU: Students, PostDocs</p>
<p>Elsewhere you may seek</p>
<p>Visits to haunted places</p>
</section>
</div>
<div class="col4">
<section>
<p> </p>
<h3>New </h3>
</section>
<section class="Lbrace">
<p>talks of</p>
<p>ways to appraise</p>
<p>ways to communicate with</p>
</section>
<section class="Rbrace">
<p> </p>
<h3> (spirited) </h3>
</section>
<section class="Lbrace">
<p>Young-Sllim</p>
<p>Gravitas</p>
<p>Serenity</p>
</section>
</div>
</header>
<div class="Raside">
<section>
<header>
<h2>Fake Graduate Textbooks</h2>
<p>Spirits ('88, 6th ed. '15), 999p, Terrestrial/Extra-terrestrial entities</p>
<p>Intro to Serene Spirit Talks ('99), never revised - no need to! </p>
<p>Stuperspace ('83), with V. Gates, M. Roachcock, & E. Kangaroo</p>
</header>
<div class="col3">
<section class="single1">
<h2>Highly Enforced Psychics</h2>
<h4>From 'wow!' to 'what?'</h4>
<p>The Super G-String</p>
<p>Super G-String Field Theory</p>
<p>Theory of More than Everything</p>
<p>Negative Physics</p>
<p>G-Duality for G-Strings & G-Branes</p>
<p>The Nonabelian Names of God</p>
<p>The Everything of Theory</p>
<p>The Misanthropic Principle</p>
<p>Student Evaluations</p>
<p>Make String Theory Great Again</p>
</section>
<section class="single2">
<h2>Psychic Classics</h2>
<p>Bogus concepts</p>
<p>Are you in Quandry?</p>
<p>Psychics & the rest of universe</p>
<p>Psychics vs. Spirits</p>
<p>Relativists are stupid</p>
<p>Djginiess</p>
<p>Spirits among Us</p>
<p>Intuition for Psychics</p>
<p>Talks of Most Improbable Things</p>
<p>The Eticakes of Talks</p>
<p>What I do otherwise?</p>
<!--<p>Sphirits ('90)</p>
<p>The Springy G-string ('93)</p>
<p>Springy G-string Spirit Talks ('95)</p>
<p>To be Annoyed ('01)</p>
<p>Misprints ('01)</p>
<p>Collective Psyche ('04)<p>
<p>G-dye for G-strings & G-things ('07)</p>-->
</section>
</div>
</section>
<aside>
<header>
<h2>Board(game)s</h2>
<p>Oiuja, Wheega, Yatzha</p>
<p>New ones from Derμ will be</p>
<p>seeing the future in Ultra Crisp HD×4K²!</p>
</header>
<article class="singleA1">
<h2>Sun Voyage Travesties</h2>
<p>Travesty 1</p>
<p>Travesty 2</p>
<p>My favourite sunspots</p>
<p>Sun Voyage meets Moon Travels</p>
</article>
<section class="container">
<article class="singleA2f">
<h6 class="front">Views expressed on these<br>
pages are very personal and<br>
no ones' business. They may<br>
not be taken as those of the<br>
Skinny Crook Universidäy,<br>
which aren't as popular.</h6>
</article>
<article class="singleA2b">
<h2 class="back">HAPPY BIRTHDAY!<br>
<br>
<br>
All the Best Wishes to You!!</h2>
</article>
</section>
</aside>
</div>
body {
background: #ffffff url(https://www.dropbox.com/s/9nwrkibvf7ksxp8/bgwcgall.jpg?dl=1) no-repeat left top;
background-size: cover;
min-width: 900px;
}
.h1top {
border: 1px solid #467813;
border-radius: 50px;
border-color: tomato;
margin: 1.5%;
text-align: center;
color: #000;
font-family: Helvetica, Arial, sans-serif;
box-shadow: 5px 5px grey;
background: rgba(255,255,255,0.75);
background-image: url(https://www.dropbox.com/s/xiag59ypdr4j3zi/Rosette.png?dl=1), url(https://www.dropbox.com/s/ms7tgb63rirxl2c/4fold.png?dl=1);
background-position: right, left;
background-size: contain, contain;
background-repeat: no-repeat, no-repeat;
transition: background-position 1s ease-in-out;
}
.h1top:hover {
background-position: left, right;
}
#myCanvas {
margin-top: 10px;
}
#myCanvas:hover {
animation: wcgall 5s 5;
perspective: 100px;
}
@keyframes wcgall {
10% {
transform: perspective(400px) rotateX(15deg);
}
20% {
transform: perspective(300px) rotateX(30deg);
}
30% {
transform: perspective(200px) rotateX(45deg);
}
40% {
transform: perspective(100px) rotateX(60deg) rotateZ(60deg);
}
50% {
transform: perspective(100px) rotateX(60deg) rotateZ(120deg);
}
60% {
transform: perspective(100px) rotateX(60deg) rotateZ(180deg);
}
70% {
transform: perspective(100px) rotateX(60deg) rotateZ(-180deg);
}
80% {
transform: perspective(200px) rotateX(45deg);
}
90% {
transform: perspective(300px) rotateX(30deg);
}
100% {
transform: perspective(400px) rotateX(15deg);
}
}
h1 {
margin-bottom: 10px;
color: blue;
}
.col2:before,
.col2:after {
content: "";
display: table;
}
.col2:after {
clear: both;
}
.col2 {
clear: both;
margin: auto;
width: 50%;
*zoom: 1;
}
.col2 section {
float: left;
margin: 0 0%;
width: 50%;
}
.col4:before,
.col4:after {
content: "";
display: table;
}
.col4:after {
clear: both;
}
.col4 {
clear: both;
margin: auto;
width: 470px;
*zoom: 1;
}
.col4 section {
float: left;
margin: 5px 0px;
height: 120px;
}
.col4 .Lbrace {
border-style: solid;
border-width: 1px 0 1px 20px;
border-image: url(https://www.dropbox.com/s/wta9ir2yatzdm5b/Lbrace.png?dl=1) 1 20 stretch;
}
.col4 .Rbrace {
border-style: solid;
border-width: 1px 0 1px 20px;
border-image: url(https://www.dropbox.com/s/22427r5715qpsj5/Rbrace.png?dl=1) 1 20 stretch;
}
.Raside:before,
.Raside:after {
content: "";
display: table;
}
.Raside:after {
clear: both;
}
.Raside {
clear: both;
text-align: center;
margin-bottom: 2%;
*zoom: 1;
}
.Raside section {
float: left;
margin: 0 1.5%;
width: 63%;
}
.Raside section header {
background: rgba(160,244,255,0.75);
border: 1px solid #467813;
border-radius: 120px 120px 120px 120px/40px 40px 20px 20px;
margin-bottom: 2.5%;
box-shadow: 5px 5px grey;
color: #000;
font-family: Helvetica, Arial, sans-serif;
}
.Raside .col3:before,
.Raside .col3:after {
content: "";
display: table;
}
.Raside .col3:after {
clear: both;
}
.Raside .col3 {
clear: both;
margin: 0%;
text-align: center;
*zoom: 1;
}
.Raside .col3 section {
float: left;
margin: 0%;
width: 47%;
}
.Raside .col3 .single1 {
background: rgba(192,255,192,0.75);
border: 1px solid #467813;
border-radius: 75px 75px 75px 75px/25px 25px 15px 15px;
margin-right: 2.5%;
margin-bottom: 2.5%;
box-shadow: 5px 5px grey;
color: #000;
font-family: Helvetica, Arial, sans-serif;
}
.Raside .col3 .single2 {
background: rgba(255,232,120,0.75);
border: 1px solid #467813;
border-radius: 75px 75px 75px 75px/25px 25px 15px 15px;
margin-left: 2.5%;
margin-bottom: 2.5%;
box-shadow: 5px 5px grey;
color: #000;
font-family: Helvetica, Arial, sans-serif;
}
.Raside .col3 p {
text-align: left;
margin-left: 5%;
margin-right: 2%;
}
.Raside aside {
float: right;
margin: 0 1.9% 0 1.5%;
width: 30%;
}
.Raside aside header {
background: rgba(128,255,240,0.75);
border: 1px solid #467813;
border-radius: 100px 100px 100px 100px/35px 35px 15px 15px;
margin-bottom: 5%;
box-shadow: 5px 5px grey;
color: #000;
font-family: Helvetica, Arial, sans-serif;
}
.Raside .singleA1 {
background: rgba(255,192,144,0.75);
border: 1px solid #467813;
border-radius: 75px 75px 75px 75px/25px 25px 15px 15px;
margin-bottom: 5%;
box-shadow: 5px 5px grey;
color: #000;
font-family: Helvetica, Arial, sans-serif;
}
.Raside .container {
width: 100%;
height: 150px;
margin-bottom: 2.5%;
perspective: 900px;
transform-style: preserve-3d;
transition: transform 5s;
}
.Raside .container article {
width: 100%;
height: 100%;
position: absolute;
backface-visibility: hidden;
}
.Raside .container .singleA2f {
background: #000;
background-image: url(https://www.dropbox.com/s/cdnm7z2299kql3t/sqrl.gif?dl=1);
background-position: right;
background-size: contain;
background-repeat: no-repeat;
border: 1px solid #467813;
border-radius: 300px 300px 300px 300px/35px 35px 25px 25px;
box-shadow: 5px 5px grey;
color: #fff;
font-family: Helvetica, Arial, sans-serif;
}
.Raside .container .singleA2b {
background: #000;
background-image: url(https://www.dropbox.com/s/9nwrkibvf7ksxp8/bgwcgall.jpg?dl=1);
background-position: center;
background-size: contain;
background-repeat: no-repeat;
border: 1px solid #467813;
border-radius: 300px 300px 300px 300px/35px 35px 25px 25px;
box-shadow: 5px 5px grey;
color: #fff;
font-family: Helvetica, Arial, sans-serif;
transform: rotateY(180deg);
}
.Raside .container:hover {
transform: rotateY(180deg);
}
h2 {
font-style: italic;
text-shadow: 5px 5px 3px grey;
}
h4 {
font-style: italic;
text-shadow: 5px 5px 3px grey;
}
h6 {
text-align: left;
padding: 1em;
}
p {
text-align: center;
}
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
grd = context.createLinearGradient(0, 0, 250, 0);
grd.addColorStop(0, "blue");
grd.addColorStop(0.25, "green");
grd.addColorStop(0.5, "yellow");
grd.addColorStop(0.75, "orange");
grd.addColorStop(1, "red");
context.font = "45pt Calibri";
context.lineWidth = 5;
context.strokeStyle = grd;
context.fillStyle = grd;
context.fillText("W. C. Gall", 7, 44, 240);
context.strokeText("W. C. Gall", 7, 44, 240);
Also see: Tab Triggers