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 src="" alt="" />
    <p>Sed euismod lectus at dolor auctor efficitur. Aenean dignissim, elit sed facilisis lacinia, velit sem tincidunt mi, ultricies mattis nibh sapien sit amet arcu. <a href="">Maecenas a dui ex.</a> Proin at neque accumsan, convallis felis sit amet, elementum leo. Sed nisi tellus, blandit in hendrerit eu, rhoncus vitae nunc. Proin viverra egestas quam sed interdum.</p>

    <p><a class="cta" href="#">Morbi blandit, magna</a></p>


                $white: #ffffff;
$blue: #27cbf4;
$purple: #c798f9;
$green: #9dd53a;

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

html { font-size: 16pt; }

body {
  background-color: black;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

a:not(.cta) {
  color: $blue;
  &:visited { 
    color:  $purple;
  &:active {
    color: $green;

div {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  grid-template-rows: minmax(5vh, auto);

div > article {
  grid-column: 5 / span 4;
  grid-row: 3 / span 8;
  min-height: 40vh;
  background-color: white;
  padding: 20px 25px;

div > img {
  grid-column: 1 / span 5;
  grid-row: 2 / span 12;

img { width: 100%;}