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.

  %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(200,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 ..................