cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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.

              <!-- Read the article about this mixin: sassbreak.com/double-ampersand-mixin -->

<div class="row">
  <div class="col">
    <a href="http://sassbreak.com/double-ampersand-mixin/">Bacon ipsum dolor amet</a> short loin doner jowl brisket drumstick alcatra ground round fatback ham hock sirloin landjaeger corned beef. Meatloaf flank ribeye alcatra frankfurter leberkas.
  <div class="col">
    Ribeye sausage beef ribs shank kielbasa shoulder ball tip turducken boudin landjaeger porchetta.  <a href="http://sassbreak.com/double-ampersand-mixin/">Cow chuck short loin</a> beef shankle jerky bacon picanha filet mignon, prosciutto tongue jowl.
  <div class="col">
    <a href="http://sassbreak.com/double-ampersand-mixin/">Short ribs doner</a> pork loin ribeye picanha fatback biltong. Venison pork chop sirloin boudin turducken, prosciutto ground round pork porchetta spare ribs beef ribs andouille fatback sausage leberkas.
<a class="btn" href="#">Primary Action</a>
<a class="btn" href="#">Secondary Action</a>
              // Article about this mixin: sassbreak.com/double-ampersand-mixin

// MQs
$one-col   : '(min-width: 0) and (max-width: 768px)';
$three-col : '(min-width: 769px)';

// Mixin
@mixin doubly($margin) {
  & + & {
    margin-left: $margin;

// Using it
.col {
  margin-bottom: 20px;
  @media #{$three-col} {
    @include doubly(25px);
    width: 30%;
    float: left;

.btn {
  @include doubly(10px) {
    background: firebrick;
  background: dodgerblue;
  color: white;
  padding: 10px;
  border-radius: 4px;

              // Article about this mixin: sassbreak.com/double-ampersand-mixin

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................