Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

Auto Save

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

              
                <div class="container">
  <article>
    <h1>Safe Plastic Numbers</h1>
    <ol class="plastic-no">
      <li title="Polyethylene Terephthalate">
        <span class="fa fa-recycle yellow"></span> PET
      </li>
      <li title="High-Density Polyethylene">
        <span class="fa fa-recycle green"></span> HDPE
      </li>
      <li title="Polyvinyl Chloride">
        <span class="fa fa-recycle red"></span> PVC
      </li>
      <li title="Low-density polyethylene">
        <span class="fa fa-recycle green"></span> LDPE
      </li>
      <li title="Polypropylene">
        <span class="fa fa-recycle green"></span> PP
      </li>
      <li title="Polystyrene">
        <span class="fa fa-recycle red"></span> PS
      </li>
      <li title="Polycarbonate">
        <span class="fa fa-recycle yellow"></span> PC
      </li>
    </ol>
    <ul class="colors">
      <li class="green"><span class="fa fa-check"></span> <span>safe</span></li>
      <li class="yellow"><span class="fa fa-warning"></span> <span>use with caution</span></li>
      <li class="red"><span class="fa fa-ban"></span> <span>avoid</span></li>
    </ul>
    <p>The TLDR version: </p>
    <ol>
      <li>
        Don't use plastic water bottles more than once, the same applies to other food packaging which are labeled #1</li>
      <li>
        #3 and #6 labeled plastics are always bad, avoid them (i.e. hot cup lids, CD cases, plastic wraps)</li>
      <li>From my experience, most of the plastic food containers are labeled #5, which is OK to use. However, you should avoid microwaving food in them</li>
    </ol>
    <ol class="plastic-no detailed-list">
      <li>
        <h2><span class="fa fa-recycle yellow"></span>
      Polyethylene Terephthalate</h2>
        <figure>
          <a href="https://www.flickr.com/photos/alohateam/4300305642" title="24.365_bottled_water by Todd Morris, on Flickr"><img src="https://farm3.staticflickr.com/2742/4300305642_3d4d144c3c_m.jpg" width="240" height="160" alt="24.365_bottled_water"></a>
        </figure>
        <p>PETE plastic should not be reused because cleaning detergents and high temperatures can cause chemicals to leach out of the plastic.</p>
        <ul>
          <li>Water bottles</li>
          <li>Spice packaging</li>
          <li>Food packaging</li>
        </ul>
        <p class="red">Plastic #1 is only intended for one time use.</p>
      </li>
      <li>
        <h2><span class="fa fa-recycle green"></span>
      High-Density Polyethylene</h2>
        <figure>
          <a href="https://www.flickr.com/photos/jeepersmedia/13943954999" title="Tide Laundry Detergent by Mike Mozart, on Flickr"><img src="https://farm8.staticflickr.com/7389/13943954999_2147167a91_m.jpg" width="240" height="150" alt="Tide Laundry Detergent"></a>
        </figure>
        <p>HDPE is hard, opaque and can withstand somewhat high temperatures.</p>
        <ul>
          <li>Laundry detergent</li>
          <li>Folding chairs & tables</li>
        </ul>
      </li>
      <li>
        <h2><span class="fa fa-recycle red"></span>
    Polyvinyl Chloride</h2>
        <figure>
          <a href="https://www.flickr.com/photos/toyfox/4279033541" title="Purple/White Inflatable Shark by Makenshi Fox, on Flickr"><img src="https://farm5.staticflickr.com/4048/4279033541_a44fd8ab41_m.jpg" width="240" height="180" alt="Purple/White Inflatable Shark"></a>
        </figure>
        <p>PVC can be found in car interiors and vinyl flooring, resulting in the release of toxic chemicals into the air.</p>

        <ul>
          <li>Inflatable structures</li>
          <li>Pool toys</li>
          <li>Food packaging</li>
          <li>Plastic wraps</li>
        </ul>
        <p class="red">PVC is one of the toxic plastics that should be avoided.</p>
      </li>

      <li>
        <h2><span class="fa fa-recycle green"></span>
    Low-density polyethylene</h2>
        <figure>
          <a href="https://www.flickr.com/photos/mnemonic/4801749802" title="L1070854 by @abrunvoll, on Flickr"><img src="https://farm5.staticflickr.com/4137/4801749802_6fc2fb9f35_m.jpg" width="240" height="180" alt="L1070854"></a>
        </figure>
        <p>LDPE is flexible and tough but breakable.</p>
        <ul>
          <li>Plastic bags</li>
          <li>Dietary supplement and medicine containers</li>
        </ul>
      </li>
      <li>
        <h2><span class="fa fa-recycle green"></span>
    Polypropylene</h2>
        <figure>
          <a href="https://www.flickr.com/photos/starmaid/5412814788" title="Starmaid - Almond Range - Microwave Cookware by Starmaid Products, on Flickr"><img src="https://farm5.staticflickr.com/4151/5412814788_156d3d0d22_m.jpg" width="240" height="188" alt="Starmaid - Almond Range - Microwave Cookware"></a>
        </figure>
        <p>PP is strong, tough, has a high resistance to heat and acts as a barrier to moisture. Most PP are microwavable safe and dishwasher safe. </p>
        <ul>
          <li>Microwavable plastic containers</li>
          <li>Plastic cups</li>
        </ul>
        <p class="red"><strong>NOTE:</strong> microwavable/dishwasher safe only means that the plastic will not warp when heated. It does not imply that it is a healthy practice.</p>
      </li>
      <li>
        <h2><span class="fa fa-recycle red"></span>
    Polystyrene</h2>
        <figure>
          <a title="I, Itsramon [GFDL (http://www.gnu.org/copyleft/fdl.html), CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0/) or CC BY 2.5 (http://creativecommons.org/licenses/by/2.5)], via Wikimedia Commons" href="http://commons.wikimedia.org/wiki/File%3AJewel_Case_02.jpg"><img width="240" alt="Jewel Case 02" src="//upload.wikimedia.org/wikipedia/commons/thumb/e/ef/Jewel_Case_02.jpg/256px-Jewel_Case_02.jpg" /></a>
        </figure>
        <p>PS can either be hard or used in the form of styrofoam.</p>
        <ul>
          <li>CD and DVD cases</li>
          <li>Foam cups & to-go foam packaging from restaurants</li>
          <li>Hot cup lids (<a href="https://www.solutionsbysolo.com/Product/Sku/TLP316-0007"> like this one</a>)</li>
        </ul>
        <p class="red">Styrene is classified as a possible human carcinogen by the EPA and by the International Agency for Research on Cancer.</p>
      </li>
      <li>
        <h2><span class="fa fa-recycle yellow"></span>
    Other</h2>
        <figure>
          <a href="https://www.flickr.com/photos/worldmegan/9971716" title="Holy Water Bottle by Megan Elizabeth Morris, on Flickr"><img src="https://farm1.staticflickr.com/6/9971716_7722e1ef9f_m.jpg" width="240" height="180" alt="Holy Water Bottle"></a>
        </figure>
        <p>Plastic #7 can be a little tricky as it stands for “Other” which may or may not contain BPA. It is commonly used to label Polycarbonate (PC).</p>
        <ul>
          <li>3 and 5 gallon reusable bottles</li>
        </ul>
        <p class="red">Polycarbonate is derived from BPA. BPA has been found to be an endocrine disruptor.</p>
      </li>
    </ol>
  </article>
  <footer>
    <p>Source / read more: <a href="http://www.babygreenthumb.com/p-122-safe-plastic-numbers-guide.aspx">http://www.babygreenthumb.com/p-122-safe-plastic-numbers-guide.aspx</a></p>
  </footer>
</div>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);
html {
  background: radial-gradient(circle at 0% 0% , rgba(#c90,0.3), rgba(#c90,0.3) 50%, rgba(#a70,0.4) 80%), url(https://dl.dropboxusercontent.com/u/15746367/images/_patterns/textured_paper.png);
  //background-blend-mode: screen; 
}
body {
    font-family: "Open Sans", sans-serif;
  line-height: 1.5;
}
h1 {
  text-align: center;
}
a {
  color: #08c;
  &:before {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translate(0, 0);
    content: "\f08e";
    margin: 0 3px 0 5px;
  }
}
.container {
  width: 700px;
  margin: auto;
  padding: 5px 40px 40px;
  background: #fff;
  box-shadow: 0 0 40px rgba(black, 0.2);
}
.plastic-no {
  counter-reset: section;
  list-style-type: none;
  padding: 0;
  text-align: center;
  font-size: 0;
  margin: 0 -5px;
  li {
    display: inline-block;
    font-size: 16px;
    margin: 20px 5px 0;
  }
  .fa {
    position: relative;
    display: block;
    font-size: 5em;
    &:after {
      counter-increment: section;            
      content: counters(section,".") " "; 
      font-size: 21px;
      position: absolute;
      top: 1.2em;
      left: 1.6em;
      font-weight: bold;
    }
  }
}
.red {
  color: #900;
}
.green {
  color: #090;
}
.yellow { 
  color: #da0; 
}
.colors {
  padding: 0;
  text-align: center;
  li {
    display: inline-block;
    margin-left: 1em;
    .fa+span {
      color: #555;
    }
  }
}
.detailed-list {
  text-align: left;
  &>li {
    display: block;
    overflow: hidden;
  }
  li {
    margin: 0;
    display: list-item;
  }
  h2 {
    font-size: 1.5em;
    border-bottom: 2px solid #ccc;
    margin-top: 1.5em;
    font-weight: normal;
  }
  .fa {
    font-size: 3.33em;
    display: inline-block;
  }
  figure {
    float: right;
    margin: 0 0 0 20px;
    a:before {
      content: "";
    }
  }
}
footer {
  color: #777;
  margin: 80px 0 0;
  border-top: 1px solid #aaa;
}
              
            
!

JS

              
                
              
            
!
999px

Console