cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate explicabo incidunt quia molestias voluptatem quasi odit libero ipsum perferendis minima dicta facilis ad! Ut amet rem? Placeat provident eligendi aperiam.</p>
            
          
!
            
              @import "compass/css3";

// Config
$base-line-height:     24;
$base-font-size:       16;

$rhythm-unit:          $base-line-height;

$guide-color:          #FF6BA6;

// Return an em value based on the $base-font-size or contextual size. Thanks @ijy https://gist.github.com/ijy/1441967
@function em($target, $context: $base-font-size) {
   @if $target == 0 { @return 0 }
   @return $target / $context + 0em;
}

// Generate a baseline guide equal to the rhythm unit
@mixin baseline-guide {
	@include background-image(linear-gradient($guide-color 1px, transparent 1px));
	background-size: 100% em($rhythm-unit);
}

// Simple reset to remove default margins
* {
  margin: 0;
}

// Apply the base font size, base line height, and baseline guide
html {
  	font-size: $base-font-size*1px;
  	line-height: $base-line-height/$base-font-size;
  	@include baseline-guide;
}
            
          
!
999px
Loading ..................

Console