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.

            
              <!--
  Hi!

  Schön, dass du unsere kleine Challenge mitmachst,
  wir freuen uns sehr auf dein Ergebnis.

  Vorgaben und Regeln:
    0. Bitte forke diesen Pen und schicke uns dann den Link
    1. Es gibt keine Regeln
    2. Du darfst das HTML komplett anpassen
    3. Nur die Informationen müssen erhalten bleiben
    4. Sauberer Code ist uns wichtig
    5. Grid soll 3 Produkte nebeneinander darstellen
    6. Crossbrowser-Kompatibilität (last 2 major versions)
    7. Das Layout sollte eingehalten werden ;-)
    8. Verknüpfe den Warenkorb-Button bitte per Javascript.
       Es soll die PZN in die console geloggt werden.
    9. Have fun 🎉
-->

<h1>Erwartetes Ergebnis</h1>

<img src="http://www.wacg.de/img/dev/productbox_vorlage.png" />

<div class="product-grid">
  <div class="product-box discounted">
    <h1>Aspirin Plus C</h1>
    <img src="http://lorempixel.com/200/200/technics" alt="" />
    <p class="supplier">von Ratiopharm</p>
    <p class="packageSize">Packungsgröße: 50 St.</p>
    <p class="pzn">PZN: 12345678</p>
    <p class="grundpreis">Grundpreis: 0,50€ / St.</p>

    <p class="price">14,30 €</p> <span class="streichpreis">UVP: 16,56 €</span>
    
    <form>
      <button><i class="fa fa-shopping-cart"></i> In den Warenkorb</button>
      
    </form>
    
    <div class="discount"><span class="big">35%</span> gespart</div>
  </div>
  
  <div class="product-box">
    <h1>BERBERIL N EDO Augentropfen</h1>
    <img src="http://lorempixel.com/200/200/technics" alt="" />
    <p class="supplier">von Dr. Gerhard Mann</p>
    <p class="packageSize">Packungsgröße: 20X0.5 ml</p>
    <p class="pzn">PZN: 12345678</p>
    <p class="grundpreis">Grundpreis: 0,22€ / St.</p>

    <p class="price">14,30 €</p>
    
    <form>
      <button><i class="fa fa-shopping-cart"></i> In den Warenkorb</button>
      
    </form>
  </div>

  <div class="product-box discounted">
    <h1>CETIRIZIN AL 10 mg Filmtabletten</h1>
    <img src="http://lorempixel.com/200/200/technics" alt="" />
    <p class="supplier">von ALIUD Pharma GmbH</p>
    <p class="packageSize">Packungsgröße: 20 St.</p>
    <p class="pzn">PZN: 8654321</p>
    <p class="grundpreis">Grundpreis: 0,22€ / St.</p>

    <p class="price">4,30 €</p> <span class="streichpreis">UVP: 5,16 €</span>
    
    <form>
      <button><i class="fa fa-shopping-cart"></i> In den Warenkorb</button>
      
    </form>

    <div class="discount"><span class="big">9%</span> gespart</div>
  </div>
</div>
            
          
!
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