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="box">
  <div class="circle"></div>
  <p class="text">Jarlsberg blue castello cut the cheese. Cheesy feet chalk and cheese macaroni cheese fromage frais pecorino cheese and biscuits cut the cheese emmental. Roquefort cheeseburger chalk and cheese airedale pepper jack cheese strings chalk and cheese lancashire. Gouda cut the cheese cheese on toast brie cheesecake cheesecake swiss parmesan. Fromage frais cut the cheese pecorino.</p>
</div>
<div class="box">
  <div class="inset"></div>
  <p class="text">Jarlsberg blue castello cut the cheese. Cheesy feet chalk and cheese macaroni cheese fromage frais pecorino cheese and biscuits cut the cheese emmental. Roquefort cheeseburger chalk and cheese airedale pepper jack cheese strings chalk and cheese lancashire. Gouda cut the cheese cheese on toast brie cheesecake cheesecake swiss parmesan. Fromage frais cut the cheese pecorino.</p>
</div>
<div class="box">
  <img src="http://images.techhive.com/images/article/2017/04/evga-gtx-1080-ti-sc2-8-100718977-hero-2up.jpg" class="thumb thumb-1"/>
  <p class="thumb-text">Jarlsberg blue castello cut the cheese. Cheesy feet chalk and cheese macaroni cheese fromage frais pecorino cheese and biscuits cut the cheese emmental. Roquefort cheeseburger chalk and cheese airedale pepper jack cheese strings chalk and cheese lancashire. Gouda cut the cheese cheese on toast brie cheesecake cheesecake swiss parmesan. Fromage frais cut the cheese pecorino.Gouda cut the cheese cheese on toast brie cheesecake cheesecake swiss parmesan. Fromage frais cut the cheese pecorino. Fromage frais cut the cheese pecorino.</p>
</div>
<div class="box">
  <img src="http://images.techhive.com/images/article/2017/04/evga-gtx-1080-ti-sc2-8-100718977-hero-2up.jpg" class="thumb thumb-2"/>
  <p class="thumb-text thumb-text-2">Jarlsberg blue castello cut the cheese. Cheesy feet chalk and cheese macaroni cheese fromage frais pecorino cheese and biscuits cut the cheese emmental. Roquefort cheeseburger chalk and cheese airedale pepper jack cheese strings chalk and cheese lancashire. Gouda cut the cheese cheese on toast brie cheesecake cheesecake swiss parmesan. Fromage frais cut the cheese pecorino.Gouda cut the cheese cheese on toast brie cheesecake cheesecake swiss parmesan. Fromage frais cut the cheese pecorino. Fromage frais cut the cheese pecorino.</p>
</div>
<div class="box">
  <img src="http://images.techhive.com/images/article/2017/04/evga-gtx-1080-ti-sc2-8-100718977-hero-2up.jpg" class="hero-img"/>
  <h2 class="headline">EVGA GTX 1080 Ti SC2 review: A ferociously cool graphics card</h2>
</div>
<div class="box">
<div class="leaf-shaped-element"></div>
  <p class="text">Jarlsberg blue castello cut the cheese. Cheesy feet chalk and cheese macaroni cheese fromage frais pecorino cheese and biscuits cut the cheese emmental. Roquefort cheeseburger chalk and cheese airedale pepper jack cheese strings chalk and cheese lancashire. Gouda cut the cheese cheese on toast brie cheesecake cheesecake swiss parmesan. Fromage frais cut the cheese pecorino.Gouda cut the cheese cheese on toast brie cheesecake cheesecake swiss parmesan. Fromage frais cut the cheese pecorino. Fromage frais cut the cheese pecorino.</p>
</div>
<div class="box">
  <div class="inside-container">Cheesy feet chalk and cheese macaroni cheese fromage frais pecorino cheese and biscuits cut the cheese emmental. Roquefort cheeseburger chalk and cheese airedale pepper jack cheese strings chalk and cheese lancashire.</div>
</div>
            
          
!
            
              .box {
  border:1px solid #eee;
  width:500px;
  overflow:hidden;
  margin-bottom:15px;
}
.text {
  margin:0;
}
.circle {
  width:100px;
  height:100px;
  float:left;
  border-radius:50%;
  background-color:#ff0;
  shape-outside:circle();
  margin:15px;

}
.inset {
  height:50px;
  width:150px;
  float:left;
  background-color:#f00;
  border-radius:20px;
  shape-outside: inset(0px round 20px) border-box;
   margin: 15px;
  shape-margin:15px;
}
.thumb {
  height:auto;
  width:100%;
  float:right;
  shape-outside: polygon(40% 0, 100% 0, 100% 100%, 40% 100%, 60% 60%, 60% 40%);
 
}
.thumb-text {
  color:#fff;
  text-shadow: 2px 2px #ff0000;
  font-size:17px
}
.thumb-2 {
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 40% 100%, 60% 60%, 60% 40%);
}
.thumb-text-2 {
  text-shadow:none;
  color:#000
}
.hero-img {
  width:100%;
  height:auto;
  float:right;
  shape-outside:polygon(0 0,100% 0,100% 90%,0 75%);
  clip-path:polygon(0 0,100% 0,100% 90%,0 75%);
  margin-bottom:25px;
}
.headline {
  margin:0
}
/* Won' work due to CORS policy, but this is the CSS */
.leaf-shaped-element {
  float: left;
	width: 400px;
	height: 400px;
	shape-outside: url(https://alistapart.com/d/394/leaf.png);
	background: #009966;
	-webkit-mask-image: url(https://alistapart.com/d/394/leaf.png);
}
/* shape-inside apparently still does not work */
.inside-container {
  width:200px;
  height:200px;
  background-color:cyan;
  float:left;
  border-radius:50%;
  shape-inside: circle();
}
            
          
!
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