Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.


                <div class="wrap">
  <div class="photo">
    <div class="box">
      <div class="content">
        <h1>CSS Triangle</h1>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce porttitor augue non erat vestibulum, sit amet accumsan magna ullamcorper. Nullam est magna, ornare non nisl ac, vulputate fringilla quam. </p>
      </div><!--End Content-->
      <div id="one"></div>
      <div id="two"></div>
      <div id="three"></div>


@import url(;

@mainBox: #18B29D;

html {height: 100%;}
body {
  background-image: linear-gradient(45deg, rgba(255, 246, 228, 0.5) 30%, rgba(128, 189, 182, 0.8) 100%), linear-gradient(-45deg, #494d71 0%, rgba(217, 230, 185, 0.5) 80%);

.wrap {
  width: 600px;
  margin: 0 auto;
  padding-top: 50px;

  font-family: 'Lato', sans-serif;
.photo {
  height: 200px;
  background: url('');
  background-size: 850px;
  background-position: -250px -180px;

.box {
  position: relative;
  float: right;

.content {
  color: #fff;
  position: absolute;
  width: 240px;
  left: 30px;
  p {
    font-size: 13px;

#one {
  height: 25px;
  background: @mainBox;

#two {
  border-top:10px solid @mainBox;
  border-left: 10px solid transparent;
  border-bottom: 10px solid @mainBox;
  border-right: 10px solid @mainBox;

#three {
  height: 158px;
  background: @mainBox;