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.


                <img class="desktop" src="" alt="Desktop Computer">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eos repellendus neque laboriosam dolores cupiditate, consectetur impedit minus, nulla suscipit cum, aut dolorem illum quisquam praesentium, blanditiis quos! Perspiciatis, delectus! Illum?Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo sapiente optio nihil quasi id minus voluptas cumque soluta, blanditiis inventore, possimus perferendis ex, temporibus aspernatur dolores nemo iusto totam magni.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ullam vel nisi alias nobis aliquam, asperiores, doloremque, blanditiis impedit at, illum fuga quasi tempore soluta. Reprehenderit ab laudantium ex accusamus. Fugit!Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores, soluta non. Dignissimos fugit repellat facilis unde voluptate eligendi vitae reprehenderit aperiam consectetur, veritatis quisquam, excepturi, atque magni! Nobis, obcaecati, cumque.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Inventore similique explicabo esse placeat suscipit ipsum incidunt quibusdam sit, eveniet asperiores facere repellat adipisci nesciunt quidem. Ab, necessitatibus eaque adipisci quod.</p>


                * { box-sizing: border-box; }
body { font-family: sans-serif; }
.desktop {
  width: 200px;
  height: 200px;
  float: left;
  margin-right: 10px;
  position: relative;
.desktop::before {
  content: " ";
  background-color: #eee;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  border: 1px dashed #aaa;
  border-radius: 4px;
.desktop::after {
  content: attr(alt);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 10px;
  left: 0px;
  text-align: center;
  font-weight: bold;
  color: #999;