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.

            
              <svg class="svg-defs" viewBox="0 0 400 400">
  <filter id="multiply" x="0" y="0">
      <feImage id="bgimage" result="bgimage" x="0" y="0" width="400" height="400" xlink:href="https://img-fotki.yandex.ru/get/6846/5091629.a2/0_85fd4_5a1f1393_orig"></feImage>
      <feTile in="bgimage" result="tile"></feTile>
      <feBlend mode="multiply"
               in="tile" in2="SourceGraphic"/>
    </filter>
</svg>

<div class="l-wrapper">
  <div class="text">
    <h1>Dragons And Knights</h1>
    <svg viewBox="0 0 300 161" width="300" height="161" class="pic pic--dragon">
      <image xlink:href="https://img-fotki.yandex.ru/get/6840/5091629.a1/0_855a9_b872dbe5_M" width="300" height="161" class="has-filter"></image>
    </svg>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin ut lacus luctus, vestibulum ante in, facilisis mi. Pellentesque vehicula at nulla ac fermentum. </p>
    <svg viewBox="0 0 203 300"  class="pic pic--knight" width="203" height="300">
      <image xlink:href="https://img-fotki.yandex.ru/get/6821/5091629.a1/0_855aa_7b6c51aa_M" width="203" height="300" class="has-filter"></image>
    </svg>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin ut lacus luctus, vestibulum ante in, facilisis mi. Pellentesque vehicula at nulla ac fermentum. </p>
    <p>Phasellus nec sodales urna. Morbi in maximus magna. Nunc tincidunt justo augue, vel mattis risus condimentum sed. Proin sodales eget urna ut tempus. In bibendum justo vitae efficitur cursus. </p>
    <p>In hac habitasse platea dictumst. Etiam et tortor pulvinar dui eleifend egestas. Nullam venenatis risus massa, at faucibus risus ullamcorper id. Vestibulum consequat lectus vitae justo ultrices, nec sodales ante egestas. </p>
    <svg viewBox="0 0 100 55"  class="pic pic--stone" width="100" height="55">
      <image xlink:href="https://img-fotki.yandex.ru/get/6806/5091629.a1/0_855ab_45e96a50_XS" width="100" height="55" class="has-filter"></image>
    </svg>
   </div>
</div>
            
          
!
            
              BODY {
  font: 1em/1.4 Georgia, serif;
  background:
    url(https://img-fotki.yandex.ru/get/6846/5091629.a1/0_8558d_406830d_M);
  background-position: 50% 50%;
}
H1 {
  overflow: hidden; 
  margin: 0 0 3rem;
  text-align: center;
  font-size: 2.6em;
  text-shadow: 2px 2px 0 hsl(50,80%,80%),
    3px 3px 0;
  font-style: italic;
  &:before,
  &:after {
    content: '';
    padding-left: 50%;
    vertical-align: middle;
    background: linear-gradient(
      black 2px, 
      transparent 2px, transparent 4px,
      black 4px, black 5px 
    );
    background-position: 0 50%;
    background-size: 100% 5px;
    background-repeat: no-repeat;
    }
  &:before {
    margin-left: -55%;
    margin-right: 1.5%;
    }
  &:after {
    margin-left: 1.7%;
    margin-right: -55%;
    }
  }

P {
  margin: 0 0 1rem;
  }

.svg-defs {
  position: absolute;
  left: -100%;
  width: 400px;
  height: 400px;
  }

.l-wrapper {
  width: 540px;
  margin: 2em auto;
  
  &:after {
    content: '';
    display: table;
    width: 100%;
    clear: both;
    }
  }

.pic--dragon {
  float: left;
  width: 300px;
  margin: 0 2em 2em -3em;
  -webkit-shape-outside: polygon(0 0, 53% 0, 61% 13%, 96% 13%, 94% 36%, 81% 52%, 87% 87%, 0 87%);
  shape-outside: polygon(0 0, 53% 0, 61% 13%, 96% 13%, 94% 36%, 81% 52%, 87% 87%, 0 87%);
  }
.pic--knight {
  float: right;
  width: 203px;
  margin: 0 -3em 2em 2em;
  -webkit-shape-outside: polygon(25% 0, 100% 0, 100% 100%, 21% 100%, 29% 65%, 3% 25%, 32% 16%);
  shape-outside: polygon(25% 0, 100% 0, 100% 100%, 21% 100%, 29% 65%, 3% 25%, 32% 16%);
  }
.pic--stone {
  display: block;
  margin: 2em auto 0;
  width: 100px;
  }

.has-filter {
    filter: url(#multiply);
  }

            
          
!
999px
Close

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.

Go PRO

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

Console