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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


                <div class="intro">
  <h1>Perfectly Framed, Responsive Images</h1>
  Centered with border and shadow. Won't stretch beyond original size. Scales down to stay within container.
  <a href="" target="_blank">Read post &raquo;</a>
<div class="vice">
  <!-- begin relevant HTML -->
  <div class="blog-insert">
    <img src="" alt="Desmond">
  <!-- end relevant HTML -->
  <div class="text">
    The domestic cat (Felis catus or Felis silvestris catus) is a small, usually furry, domesticated, and carnivorous mammal.


                @import url(;

/* begin relevant CSS */
.blog-insert {
  max-width: 100%;
  text-align: center;
  font-size: 0;
.blog-insert > * {
  display: inline-block;
  border: solid 4px #fff;
  box-shadow: 0 0 20px #333;
.blog-insert img {
  max-width: 100%;
  box-sizing: border-box;
.blog-insert a img {
  width: 100%;
/* end relevant CSS */

body {
  min-width: 600px;
  margin: 20px;
  font: 18px/1.3 'Noto Sans', sans-serif;
  color: #444c5b;
  background: #dee5eb linear-gradient(#acbecd 20%, #dee5eb) no-repeat;
a {
  color: #ce4061;
  text-decoration: none;
.intro {
  margin: 0 auto 20px;
  width: 560px;
  padding: 20px;
  background-color: #fff;
  border-radius: 20px;
h1 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1;
  text-align: center;
.vice {
  margin: 0 auto;
  width: 540px;
  height: 260px;
  padding: 0 20px;
  border-left: solid 10px #ce4061;
  border-right: solid 10px #ce4061;
  animation: squeeze 5s infinite;
.text {
  margin-top: 20px;

@keyframes squeeze {
	50% { width: 260px; }
	100% { width: 540px; }