Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ 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

Auto Save

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

              
                <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>&nbsp;</p>
			<h3>New&nbsp;</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>&nbsp;</p>
			<h3>&nbsp;(spirited)&nbsp;</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>
              
            
!

CSS

              
                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;
}
              
            
!

JS

              
                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);
              
            
!
999px

Console