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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

<div class="container">
  <h1 class="title">Mixins from Philadelphia Sass Meetup #7</h1>
  <div class="section-one">
    <h2>Section Header 1</h2>
      Phasellus et arcu at arcu dapibus accumsan. Praesent nec sodales dui. Donec sit amet sem sapien, eget egestas.
  <div class="section-two">
    <h2>Section Header 2</h2>
      Nullam ante mauris, lobortis non rutrum quis, sodales mattis augue. Aliquam tristique ultrices justo, vestibulum luctus elit porttitor quis. Quisque nibh eros, eleifend eu lacinia.
              @import "compass/css3";

@mixin section-header(
    $padding-top: 4em,
    $background-position: 50% 50%,
    $side-wings: false
  padding-top: $padding-top;
  margin-left: -#{8px / ms(4)}em;
  margin-right: -#{8px / ms(4)}em;
  font-family: georgia;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: bold;
  background: black;
  color: white;
  background: {
    image: url($image);
    repeat: no-repeat;
    position: $background-position;
  @include background-size(cover);
  @if ($side-wings != false) {
    position: relative;
    &:before, &:after {
      position: absolute;
      content: "\0020";
      top: 0;
      width: 100%;
      height: 100%;
      background: $side-wings;
    &:before {
      left: -100%;
    &:after {
      right: -100%;

html, body {
 overflow-x: hidden; 

body {
  background-color: #F5FDFD;

.container {
  max-width: 30em;
  margin: 0 auto;


.section-one {
  > h2 {
    &:first-of-type {
      @include section-header('http://breakpoint-sass.com/images/point-break/bodhi-fire.gif', $background-position: 50% 60%, $side-wings: black);

.section-two {
  > h2 {
    &:first-of-type {
      @include section-header('http://breakpoint-sass.com/images/point-break/ex-presidents.jpg', $background-position: 8% 40%, $side-wings: #d8d4c8, $padding-top: 6em);
Loading ..................