Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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.

+ add another resource

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <h1>Clip Path / Regions Demo</h1>

<img id="demo1" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/32795/clip-image.jpg" height="640" width="640">

<p>Lorem ipsum dolor sít amet, ex viris deserúnt nam, et brúte consectetuer nám, eám nibh iudico appellantur id. Té enim quaestio platoñém éum. Ad compléctitur compréhensam méi, eú viris veritus pertiñax qúo. Eu per contentiones definitioñem, deleniti imperdiet interpretáris cú dúo. Hás in quis éleifend. Id stet dólorem ñec.</p>

<p>Id eos purtó movet ancíllae. Eruditi salutandi vél ut, duó eu wisí viderer. Ea maiorum suávitate vim, cú prima cómplectitur pro. Iñ vis hiñc eligendi, eos et scripta abhorreánt, has ád nemore posidonium. Eám ei etíam sententiaé referrentúr, ut nec bruté putant, graeco aeterno cómprehensam per ín. Cú meí esse domíng mediocritátem, qui né sumo definitioñem, utamur opórteat expétendis ño eum.</p>

<p>Vél justo illum debitis eu, an mea solet boñorum adipiscing. Ius ne dícat feugait effíciantur. Ei laudem possím aliquip sea, vim út dolorum óportere philosophiá. Ad usu mediocrém voluptaria. Etiam probatus liberavisse eos ea, cúm ex omñis laudem ómñesque, putént similique cum eu. Vis qúis homero discére ex, eí detraxit maiestatis sed, per ád saepe perfecto.</p>

<p>Nullam legére petentium ne mea, gubergrén omittantur íd duo. Ea laboré órnatus detraxit sit. Illud veritus perfécto per ad. Rébum evertítur reformidans quo ex. Has elit dolorum delícata át.</p>
  
<p>Iús dicunt mentítum in, sea éa iusto propriae ponderum. Quo éros soñet ut, omnés doloré inciderint his ad. Dúo epicuri insolens honestátis eú, pro paulo alíquando át. Ne vel harúm populó, nulla repudiare te mea. Apeirian sénserit suscipiantur cu iús, sea cú tollit tritaní aliquañdo. Eligeñdi lucilius laboramus át cum.</p>

<p>Lorem ipsum dolor sít amet, ex viris deserúnt nam, et brúte consectetuer nám, eám nibh iudico appellantur id. Té enim quaestio platoñém éum. Ad compléctitur compréhensam méi, eú viris veritus pertiñax qúo. Eu per contentiones definitioñem, deleniti imperdiet interpretáris cú dúo. Hás in quis éleifend. Id stet dólorem ñec.</p>

<p>Id eos purtó movet ancíllae. Eruditi salutandi vél ut, duó eu wisí viderer. Ea maiorum suávitate vim, cú prima cómplectitur pro. Iñ vis hiñc eligendi, eos et scripta abhorreánt, has ád nemore posidonium. Eám ei etíam sententiaé referrentúr, ut nec bruté putant, graeco aeterno cómprehensam per ín. Cú meí esse domíng mediocritátem, qui né sumo definitioñem, utamur opórteat expétendis ño eum.</p>

<p>Vél justo illum debitis eu, an mea solet boñorum adipiscing. Ius ne dícat feugait effíciantur. Ei laudem possím aliquip sea, vim út dolorum óportere philosophiá. Ad usu mediocrém voluptaria. Etiam probatus liberavisse eos ea, cúm ex omñis laudem ómñesque, putént similique cum eu. Vis qúis homero discére ex, eí detraxit maiestatis sed, per ád saepe perfecto.</p>

<p>Nullam legére petentium ne mea, gubergrén omittantur íd duo. Ea laboré órnatus detraxit sit. Illud veritus perfécto per ad. Rébum evertítur reformidans quo ex. Has elit dolorum delícata át.</p>
  
<p>Iús dicunt mentítum in, sea éa iusto propriae ponderum. Quo éros soñet ut, omnés doloré inciderint his ad. Dúo epicuri insolens honestátis eú, pro paulo alíquando át. Ne vel harúm populó, nulla repudiare te mea. Apeirian sénserit suscipiantur cu iús, sea cú tollit tritaní aliquañdo. Eligeñdi lucilius laboramus át cum.</p>
<svg id="svgpath">
<defs>
<clipPath id="svg1" clipPathUnits="objectBoundingBox">
<polygon points=".24,0 .24,1 1,.54" />
</clipPath>
</defs>
</svg>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Roboto);
body { 
  font-family: Roboto, Avenir, sans-serif;
  margin: 0;
  margin-right: 2rem;
}
 
svg {
  height: 0;
  width: 0;
}

img#demo1 {
width: 50%;
margin-left: -10%;
float: left;
/*clip-path: url(#svg1);
*/-webkit-clip-path: polygon(24% 0, 24% 100%, 100% 54%);
clip-path: polygon(24% 0, 24% 100%, 100% 54%);
/*shape-outside: polygon(24% 0, 24% 100%, 100% 54%);*/
}

p {
  margin-left: 10px;
  text-align: left;
}
              
            
!

JS

              
                
              
            
!
999px

Console