Pen Settings



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


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.


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.


                <div class="em-buttons"> 
  <a href="" target="_blank" class="btn btn-small">Small Button</a>
  <a href="" target="_blank" class="btn">Medium Button</a>
  <a href="" target="_blank" class="btn btn-large">Large Button</a>



                body {
  font-family: roboto;

/* center div */
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center 

/* general button code (keep in mind the buttons have a default font-size of 16px) */
.btn {
  display: inline-block;
  background-image: linear-gradient(315deg, #00B4D8, #2666CF);
  color: white;
  font-weight: 600;
  letter-spacing: 4px;
  text-decoration: none;
  /* I used rem for the margin because I want equal spacing between the buttons, uncomment em to see the difference */
  margin: 1rem;
/*   margin: .5em; */
  /* I used em for the button padding because I want the padding to be proportional and adapt automatically to the button's font-size for better padding consistency depending on the size of each button, uncomment rem to see that the padding is fixed and not proportional to each button's font size which doesn't look great for the small or large button */
  padding: 1.5em 4.5em;
/*   padding: 1rem 3rem; */
.btn-small {
  font-size: .5rem;

.btn-large {
  font-size: 2rem;