css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="row">
<section class="col-6 column">
  <h2>Oh Henry</h2>
  <img src="http://davidhurwich.com/des117/codepen/ohhenry.png" alt="Oh Henry candybar" />
  <p>
  According to Nestle's site, Oh Henry! was originally named after a boy who frequented the Williamson company, flirting with the girls who made the candy.</p>
  <p>
In 1923, an employee of Williamson named John Glossinger announced that he was going to make the Oh Henry! bar a national best seller. Company officials said that it was impossible and denied him the funds for an advertising campaign. Glossinger went into the streets and pasted stickers onto automobile bumpers saying merely "Oh Henry!". People became curious as to what an Oh Henry! was, and sales for the bar rose quickly.
  </p>
</section>
<section class="col-6 column">
  <h2>Abba Zaba</h2>
  <img src="http://davidhurwich.com/des117/codepen/abba-zabba.png" alt="Abba-Zaba candybar" />
    <p>
  Abba-Zaba are taffy candy bars with peanut butter centers, made by the Annabelle Candy Company in Hayward, California.
  </p>
  <p>
According to the Candy Wrapper Museum, the first Abba Zaba bars were manufactured beginning in 1922 by Colby and McDermott. Before Annabelle Candy Co. started manufacturing Abba-Zaba, the packaging featured racially insensitive imagery. Annabelle Candy Co. will only say that the wrapper has been the same for as long as they have manufactured the candy.
  </p>
  
</section>
</div> 
<div class="row"> 
<section class="col-6 column">
    <img src="http://davidhurwich.com/des117/codepen/100grand.png" alt="100 Grand candybar" />
  <h2>100 Grand</h2>
  <p>
  100 Grand Bar (formerly known as $100,000 Bar spoken as "hundred thousand dollar bar" until the mid 1980s) is a candy bar produced by Nestlé in the United States. The candy bar was created in 1966, and named after a series of successful game shows.[citation needed] It weighs 1.5 ounces (43 g) and includes chocolate, caramel and crisped rice. The bar contains 201 calories; it is low in cholesterol and sodium, but high in saturated fat and sugar. Its slogan is "That's Rich!"
  </p>
</section>
<section class="col-6 column">
    <img src="http://davidhurwich.com/des117/codepen/5th-avenue.png" alt="5th Avenue candybar" />
  <h2>5th Avenue Candy Bar</h2>
  <p>
  The 5th Avenue is a candy bar invented by William H. Luden in 1936 which is a combination of peanut butter crunch layers coated with chocolate. It is produced and marketed by The Hershey Company.
  </p>
  <p>

The bar consists of a crunchy peanut butter center covered in chocolate. It is similar to a Butterfinger candy bar, which (according to its wikipedia article) "consists of a crispy core of creamy peanut butter blended with sugar candy in chocolatey coating." The bar was topped with two chocolate-covered almonds until the mid-1990s, when the almonds were removed.
  </p>
</section>
</div> 
            
          
!
            
              * { 
  box-sizing: border-box; 
}

.col-6 { 
  width: 50%; 
  padding: 50px; 
}

.column { 
  float: left; 
}

.row { 
  clear:both; 
}

img { 
  max-width: 100%; 
}

@media screen and (max-width: 600px) { 
  .col-6{ 
    width: 100%;
  }
  
  body { 
    background-color: lightgrey; 
  }

}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console