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.

            
              <!DOCTYPE html>
<html>
<head>
    <title>CSSDay Logo</title>
    <link rel="stylesheet" href="/static/css/compiled/cssday.css">
</head>
<body>
    <img src="http://cssday.nl/_css/img/cssday-logo.png">
    <div class="logo">
        <div class="letter">
            <div class="top left full"></div>
            <div class="bottom left large vertical"></div>
            <div class="bottom right large"></div>
        </div>
        <div class="letter">
            <div class="top left small vertical"></div>
            <div class="top right large"></div>
            <div class="center top left"></div>
            <div class="bottom right small vertical"></div>
            <div class="bottom left large"></div>
        </div>
        <div class="letter">
            <div class="top left small vertical"></div>
            <div class="top right large"></div>
            <div class="center top left"></div>
            <div class="bottom right small vertical"></div>
            <div class="bottom left large"></div>
        </div>
        <div class="letter">
            <div class="top left large"></div>
            <div class="top right large vertical"></div>
            <div class="bottom right large"></div>
            <div class="bottom left large vertical"></div>
        </div>
        <div class="letter">
            <div class="top left large"></div>
            <div class="top right full vertical"></div>
            <div class="bottom left large vertical"></div>
            <div class="center"></div>
        </div>
        <div class="letter">
            <div class="top left small vertical"></div>
            <div class="top right full vertical"></div>
            <div class="center bottom"></div>
            <div class="bottom right small stacked-right"></div>
        </div>
    </div>
</body>
</html>

            
          
!
            
              @import "compass/css3";

body {
  background: #e3e3db;
}

img {
  position: absolute;
  opacity: 0; // set to 1 to show the original
}

.logo {
  width: 653px;
  height: 408px;

  .letter {
    position: relative;
    float: left;

    width: 30%;
    margin-left: 5%;
    height: 46%;
    margin-bottom: 5%;

    &:nth-child(3n+1) {
      margin-left: 0;
      clear: both;
    }

    div {
      background: #000;
      border-radius: 6px;
      height: 26%;
      position: absolute;

      &.top { top: 0; }
      &.right { right: 0; }
      &.bottom { bottom: 0; }
      &.left { left: 0; }

      &.top.right { @include transform-origin(right, top); }
      &.top.left { @include transform-origin(left, top); }
      &.bottom.right { @include transform-origin(right, bottom); }
      &.bottom.left { @include transform-origin(left, bottom); }

      &.full { width: 100%; }
      &.large { width: 69%; }
      &.small { width: 58%; }
      &.center {
        width: 35%;
        top: 42%;
        left: 34%;

        &.top { top: 37%; }
        &.bottom { top: 36%; }
        &.left { left: 32%; }
      }

      &.stacked-top { top: 30%; }
      &.stacked-right { right: 30%; }
      &.stacked-bottom { bottom: 30%; }
      &.stacked-left { left: 30%; }

      &.vertical {
        &.top.left { @include transform( rotate(-90deg) scaleX(-1)); }
        &.top.right { @include transform( rotate(90deg) scaleX(-1)); }
        &.bottom.left { @include transform( rotate(90deg) scaleX(-1)); }
        &.bottom.right { @include transform( rotate(-90deg) scaleX(-1)); }
        
        &.full { width: 96%; }
        &.large { width: 67%; }
        &.small { width: 60%; }
      }
    }
  }
}

            
          
!
999px
Loading ..................

Console