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="header__image decor-image")
        each val in ['home', 'blog', 'gallery']
          -var itemClass = 'nav__item nav__item--' + val;
          a(href="#", class=itemClass) 
            span #{val}
    h1 My Blog
      time.article__datetime 15.06.2014
      h2.article__title Rainy day
      p Nunc eu accumsan lorem, nec eleifend massa. Integer lobortis bibendum neque a pellentesque. Nunc ullamcorper hendrerit mauris, id gravida turpis facilisis in. 
        a(href="#") 0 comments
      div(class="footer__image decor-image")
              $base-color: skyblue;
$light-color: #DDD;
$dark-color: crimson;
$headers-font-style: italic;
$radius: .9em;

  padding: 2em;
  background: linear-gradient(rgba(0,0,0,.3) 50%, rgba(0,0,0,0)),
  font: 16px/1.5 Georgia, serif;

A {
  color: $dark-color;
  transition: all .2s;
  &:hover {
    color: #333;

P {
  margin-top: 1rem;

.l-wrapper {
  width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: #FFF;
  box-shadow: 0 0 15px rgba(0,0,0,.5);

.decor-image {
  background: url(https://img-fotki.yandex.ru/get/5013/5091629.66/0_56d2b_a38f6a54_L.jpg),
      salmon 33%, 
      yellow 33%, yellow 66%, 
      skyblue 66%);
  background-blend-mode: luminosity;
  background-position: 50% 50%;
  border-radius: .5rem;
  .header__image {
    height: 185px;
    margin-bottom: 1rem;
  .footer__image {
    height: 50px;
    margin-top: 2rem;

['multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity','normal']

.nav {
  text-align: center;
  .nav__item {
    display: inline-block;
    position: relative;
    margin: 0 1.5rem;
    text-decoration: none;
    text-transform: capitalize;
    color: #000;
    &:hover {
      color: $dark-color;
    SPAN {
      display: inline-block;
      position: relative;
      z-index: 1;
      vertical-align: middle;
      width: 90%;
      font-size: 1.2em;
      font-style: italic;
      transition: all .4s;

.nav {
  font-style: $headers-font-style;

H1 {
  margin: 1rem 0;
  padding: .5rem;
  border-style: solid;
  border-color: $light-color transparent;
  border-width: 2px 0;
  text-align: center;
  font-size: 2em;

H2 {
  margin: 0 0 1rem;
  font-size: 1.5em;

.article {
  color: #333;
  &__datetime {
    float: right;
    line-height: 2.1rem;
    color: #999;
  &__footer {
    margin-top: 1.5em;
    text-align: right;
Loading ..................