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.

  %h1 nth-child background color mixin 
    - 200.times do
        %a{:href => '#'} Block

              @import url(https://fonts.googleapis.com/css?family=PT+Mono);

body {
   font-family: 'PT Mono', ;

.container {
  margin: 0 auto;
  padding: 20px;
  width: 90%;

h1 {
  margin-bottom: 20px;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;

nth-child mixin

// $max-count is the maximum amount of colors you'll want
// $color-frequency is how intense you want the color change to be. Lower # = more intense changes
@mixin colors($max-count, $color-frequency){
  $color: 360/$max-count;
  @for $i from 1 through $max-count {
    &:nth-child(#{$max-count}n + #{$i}) {
      // Modify 's' and 'l' percentages to match color scheme you want
      background: hsl(($i - 1)*($color / $color-frequency), 80%, 60%);


.hList { overflow: hidden; }
.hList > * { display: inline-block; }

hList Breadcrumbs

.hList_breadcrumb { 
    overflow: hidden;
	    list-style: none; 

.hList_breadcrumb > * {
    float: left;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box; 
    text-align: center;
    text-decoration: none; 
    //nth child mixin
    @include colors(100,1); //($number of color, $color-frequency)  

.hList_breadcrumb > * a {
    display: block;
    padding: 20px 10px;
    text-align: center;
    font-size: 12px;
    text-decoration: none;
    color: #000000;

.hList_5up > * {
    width: 20%;
Loading ..................