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.


                <div class="container">
  <div class="photo-card">
    <div class="image">
      <img src="">
      <div class="heading">
        <h2 class="title">I love Cats!</h2>
        <h3 class="subtitle">They are soooo beautiful! =3</h3>
      <div class="description">
        <p>Kitty power! refuse to leave cardboard box for mark territory, but lick arm hair yet flee in terror at cucumber discovered on floor walk on car leaving trail of paw prints on hood and windshield eat from dog's food.</p>
      <div class="actions">
        <a class="button" href="#">This is a link</a>


                .container {
  width: 400px;
  margin: 3em;

.photo-card {
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  > .image {
    border-radius: 2px 2px 0 0;
  > .heading,
  > .description,
  > .actions {
    padding: 0 20px;
  > .heading {
      .title {
        color: #333;
        margin: 10px 0 5px;
      .subtitle {
        color: #666;
        font-size: 16px;
        margin: 0;
  > .description {
      color: #444;
      font-size: 14px;
      line-height: 1.2;
  > .actions {
    border-top: 1px solid #ccc;
  > .actions > .button {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 15px 0;
    transition: color .4s;
    &:hover {
      color: #333;