Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


Save Automatically?

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.


<div id="dark"></div>
<h1>TriParallaxsisenSciTechCom Partners Inc.<sup id="tim">TM</sup></h1><h3>A real company since March!</h3>
<h2>Welcome to a website!</h2>
<p>"We make products and services that humans will eat!"</p>
<div id="lb1">Since you're leaving our website and obviously are no longer interested in our company you definitely want to sign up for a newsletter, right? It will give you many discounts on things!<div id="close">This button does nothing.</div></div>
<p>We use megabytes here! Also, all of your base are belong to us.</p>



                * {
  text-align: center;
  background-color: brown;
  font-family: serif;

#tim {
  font-size: .2em;

h1 {
  font-family: serif;
  color: white;
  font-size: 60px;
  margin-bottom: 0px;

h3 {
  font-family: serif;
  margin-top: 0px;
  color: lightgray;

#lb1 {
  margin: 0 auto;  
  font-family: serif;
  color: white;
  width: 500px;
  height: 200px;
  background-color: magenta;
  padding: 50px;
  border-radius: 10px;
  font-size: 1.5em;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  visibility: hidden;
  position: relative;  

#dark {
  background-color: rgb(0, 0, 0);
  visibility: hidden;

#close {
  width: 70%;
  margin: 0 auto;
  margin-top: 25px;
  border-radius: 5px;
  background-color: green;
  font-size: .8em;



                var darkToggle = document.getElementById("dark");
var lightToggle = document.getElementById("lb1");
var closeIt = document.getElementById("close");

window.addEventListener("mouseout", function(){ = "visible"});
window.addEventListener("mouseout", function(){ = "visible"});
window.addEventListener("mouseover", function(){ = "hidden"});
window.addEventListener("mouseover", function(){ = "hidden"});