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 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


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.


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.


  <!--Creates a button -->
  <button> TOUCH ME </button>
      <p> Made for <a href=""> this blog post</a> </p>


                * {

  /** All button properties will get a hover transition effect */
  transition-property: all;
  /* transition animation lasts for 1.5 seconds */
  transition-duration: 1.5s;
  /* Transition eases through*/
  transition-timing-function: ease;

  width: 100%;
  height: 100%;
button {
  /* Increases width and height by 200 x 80 pixels */
  width: 200px;
  height: 80px;
  /* Increase text size and boldness */
  font-size: 25px;
  font-weight: bold;
  /* Position of button on screen */
  margin-left: 40%;
  margin-top: 100px;
  /* Background and text color */
  background-color: #D0FF76;
  color: #333;
  /* Drops opacity of button to make it lighter */
  opacity: 0.8;
  /* Button border width, color and style */
  border: 2px white solid;
  /* Changes the cursor */
  cursor: grab;

button:hover {
  /* Upon hover, the border radius increases, making it curve */
  border-radius: 100px;
  /* Button becomes fully opaque and darker */
  opacity: 1;
  /* Border color changes to white */
  border-color: black;

p {
  margin: auto;
  position: absolute;
  left: 30%;
  top: 60%;
  right: 0;
  color: white;
p > a{
  color: white;