Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                %h1 Simple blockquote

%p Lorem lipsum dolor sit amet, consectetur adipisicing elit. Odio eius tempora hic quia consequatur illo repellat facere accusantium omnis incidunt explicabo quis rem tempore et debitis repellendus natus velit nesciunt nam ad ipsam pariatur eaque non veniam ipsa ex dolor deleniti similique accusamus quam. Explicabo.

%blockquote.blockquote 
  %p Big blockquote. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolore harum maiores impedit voluptatem atque enim quae repellat accusamus eveniet. Voluptates modi repellendus similique corrupti rem quam officiis necessitatibus reprehenderit in itaque molestias quae laboriosam neque doloremque dolorem incidunt impedit eveniet. Est impedit ducimus sequi perferendis!
  %cite Lorem ipsum dolor sit.
  
%p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Doloremque eius iste quasi quo quia reprehenderit eos corrupti doloribus sequi non hic consequuntur perspiciatis ipsa repellat inventore pariatur harum molestiae incidunt est amet. Possimus necessitatibus ut accusamus odit ab enim sapiente culpa quam cupiditate voluptatem explicabo expedita magni quis quia obcaecati a optio nemo amet dicta recusandae! Explicabo velit laborum maxime voluptatum provident autem fugit vero reprehenderit porro? 

%blockquote.blockquote
  %p Little blockquote
%p Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laboriosam harum voluptatibus rerum voluptates inventore impedit tenetur.
  
              
            
!

CSS

              
                // Variables
$font-family: Georgia, serif;
$font-size: 1rem;
  

// Basic page style
body {
  font-family: $font-family;
  font-size: $font-size;
  color: #333;
  background-color: #f7f5f2;
  padding: 1rem;
}

.blockquote {
  
  // variables
  $blockquote__font-size: $font-size*1.5;
  $blockquote__double-quote-size: $blockquote__font-size*3;
  
  // Typo
  font-size: $blockquote__font-size;
  font-style: italic;
  
  // Positionning
  margin-left: $blockquote__font-size*2;
  margin-right: $blockquote__font-size*2;
  position: relative;
  
  // Place left doublequote
  &::before {
    content: "\201C"; /*Unicode for Left Double Quote*/
    font-size: $blockquote__double-quote-size;
    
    // Positionning
    position: absolute;
    top: -$blockquote__double-quote-size/4;
    left: -$blockquote__double-quote-size/2;
  }
  
  // Place right doublequote
  &::after {
    content: "\201D"; /*Unicode for Left Double Quote*/
    font-size: $blockquote__double-quote-size;
    
    // Positionning
    position: absolute;
    bottom: -$blockquote__double-quote-size/1.2;
    right: -$blockquote__double-quote-size/3;
  }
  
  cite {
    font-size: $font-size;
    
    // Place em dash
    &::before {
      content: "\2014\2002";/*Unicode for em dash and space*/
    }
  }
  
}
              
            
!

JS

              
                
              
            
!
999px

Console