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 is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.


              <p>A pull quote is a typographical technique in which an excerpt or quote from an article is duplicated within the article using a different formatting style so that it jumps out at the reader.</p>

<p data-pullquote="b">Blatantly copying the excerpt of the pull quote into it’s own element is not the way to go. <b>A pull quote is a purely visual technique, and therefore should not change the structure of the body.</b> Next to that, a structural representation of the excerpt would be seen twice by people using feed readers or services like <a href="">Instapaper</a>, as well as be re-read for people who use screen readers. So how can we best author this into our mark-up?</p>

<h3>Our good friend, the data attribute</h3>

<p><span class="caps">HTML5 </span>introduced the ability for authors to create custom non-visible data-attributes. These attributes can contain data that will not affect layout or presentation.</p>

<blockquote><p>Custom data attributes are intended to store custom data private to the page or application, for which there are no more appropriate attributes or elements.</p></blockquote>

<p>By adding a <code>data-pullquote</code> attribute to an element, we attach the text of the pull quote to it, yet do not add visible content.</p>


<p>Original source: <a href=""></a></p>


              @import "compass/css3";

body {
  margin: 0 140px 0 0;
  padding: 1em;
b {
  font-weight: inherit;

.has-pullquote::before {
	/* Reset metrics. */
	padding: 0;
	border: none;
	/* Content */
	content: attr(data-pullquote);
	/* Pull out to the right, modular scale based margins. */
	float: right;
	width: 320px;
	margin: 12px -140px 24px 36px;
	/* Baseline correction */
	position: relative;
	top: 5px;
	/* Typography (30px line-height equals 25% incremental leading) */
	font-size: 23px;
	line-height: 30px;

.pullquote-left::before {
	float: left;
	margin: 12px 31px 24px -102px;
	width: 251px;


              (function( $ ){
	var PULLQUOTE = 'data-pullquote';
	$('[' + PULLQUOTE + ']').each(function(){
		var $parent = $(this),
	      $quote = $parent.find( $'pullquote') );
		if ( $quote.length > 0 )
				.attr( PULLQUOTE, $quote.eq(0).text() )
				.addClass( 'has-pullquote ');
}( jQuery ));