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.

            
              <section id="container">
<ul class="ProductList">
    <li data-product="32">
        <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=32"
           class="tc_view_single_product">
        </a><a href="https://store.margaretriverbeverages.com.au/triple-g/"><img
            src="https://cdn1.bigcommerce.com/server4500/e9906/products/32/images/137/005-MRBCo-160223-JWyld__31586.1467359528.1125.1125.jpg?c=2"
            alt="Triple G"></a>
        <h2 class="tc_product_title">Triple G</h2>
        <p>This zesty ginger beer with 10% apple juice combines the restorative elements of ginseng with the energy
            boosting properties of guarana, putting a skip in your step without the caffeine.</p>
        <p class="tc_price">12 Pack Carton $32.00</p>
        <div class="ProductActionAdd">
            <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=32"
               class="button icon-Add To Cart" title="Add To Cart">Add To Cart</a>
        </div>

    </li>
    <li data-product="33">
        <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=33"
           class="tc_view_single_product">
        </a><a href="https://store.margaretriverbeverages.com.au/citron-presse/"><img
            src="https://cdn1.bigcommerce.com/server4500/e9906/products/33/images/136/006-MRBCo-160223-JWyld__20534.1467359522.1125.1125.jpg?c=2"
            alt="Citron Presse"></a>
        <h2 class="tc_product_title">Citron Presse</h2>
        <p>Based on a classic European cafe drink, serious refreshment is delivered in the form of real lemon juice, a
            touch of lime and aromatic bitters.</p>
        <p class="tc_price">12 Pack Carton $32.00</p>
        <div class="ProductActionAdd">
            <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=33"
               class="button icon-Add To Cart" title="Add To Cart">Add To Cart</a>
        </div>

    </li>
    <li data-product="34">
        <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=34"
           class="tc_view_single_product">
        </a><a href="https://store.margaretriverbeverages.com.au/dry-cola/"><img
            src="https://cdn1.bigcommerce.com/server4500/e9906/products/34/images/135/008-MRBCo-160223-JWyld__52708.1467359517.1125.1125.jpg?c=2"
            alt="Dry Cola"></a>
        <h2 class="tc_product_title">Dry Cola</h2>
        <p>Our lightly carbonated cola featuring a blend of herbal extracts delivers a classic cola taste*.&nbsp;
            * 20% Less sugar than Margaret River Beverages Triple G</p>
        <p class="tc_price">12 Pack Carton $32.00</p>
        <div class="ProductActionAdd">
            <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=34"
               class="button icon-Add To Cart" title="Add To Cart">Add To Cart</a>
        </div>

    </li>
    <li data-product="35">
        <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=35"
           class="tc_view_single_product">
        </a><a href="https://store.margaretriverbeverages.com.au/lemon-lime-bitters/"><img
            src="https://cdn1.bigcommerce.com/server4500/e9906/products/35/images/134/004-MRBCo-160223-JWyld__34712.1467359500.1125.1125.jpg?c=2"
            alt="Pink Lemon, Lime and Bitters"></a>
        <h2 class="tc_product_title">Lemon Lime &amp; Bitters</h2>
        <p>Fresh lemon flavours, with a twist of lime and a dash of aromatic bitters. Enjoy it over ice on its own or
            as a mixer that will awaken your senses.</p>
        <p class="tc_price">12 Pack Carton $32.00</p>
        <div class="ProductActionAdd">
            <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=35"
               class="button icon-Add To Cart" title="Add To Cart">Add To Cart</a>
        </div>

    </li>
    <li data-product="30">
        <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=30"
           class="tc_view_single_product">
        </a><a href="https://store.margaretriverbeverages.com.au/berry-fusion/"><img
            src="https://cdn1.bigcommerce.com/server4500/e9906/products/30/images/139/009-MRBCo-160223-JWyld__33060.1467359550.1125.1125.jpg?c=2"
            alt="Berry Fusion"></a>
        <h2 class="tc_product_title">Berry Fusion</h2>
        <p>Blending sparkling grape juice and mixed berry flavours with the complexity of chamomile and the therapeutic
            properties of St John's Wort.. Enjoy a moment of calm indulgence.</p>
        <p class="tc_price">12 Pack Carton $32.00</p>
        <div class="ProductActionAdd">
            <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=30"
               class="button icon-Add To Cart" title="Add To Cart">Add To Cart</a>
        </div>

    </li>
    <li data-product="37">
        <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=37"
           class="tc_view_single_product">
        </a><a href="https://store.margaretriverbeverages.com.au/chilli-cola/"><img
            src="https://cdn1.bigcommerce.com/server4500/e9906/products/37/images/133/007-MRBCo-160223-JWyld__04599.1467359465.1125.1125.jpg?c=2"
            alt="Chilli Cola"></a>
        <h2 class="tc_product_title">Chilli Cola</h2>
        <p>An exciting blend of natural chilli extracts and classic cola. This is a fresh take on an old favourite with
            lime and a dash of guarana that will have your tastebuds crying out for more.&nbsp;</p>
        <p class="tc_price">12 Pack Carton $32.00</p>
        <div class="ProductActionAdd">
            <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=37"
               class="button icon-Add To Cart" title="Add To Cart">Add To Cart</a>
        </div>

    </li>
    <li data-product="31">
        <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=31"
           class="tc_view_single_product">
        </a><a href="https://store.margaretriverbeverages.com.au/vanilla-blu/"><img
            src="https://cdn1.bigcommerce.com/server4500/e9906/products/31/images/138/011-MRBCo-160223-JWyld__88423.1467359544.1125.1125.jpg?c=2"
            alt="Vanilla Blu"></a>
        <h2 class="tc_product_title">Vanilla Blu</h2>
        <p>Fun, delicious and blue! Our Vanilla Blu crema soda is a wonderful treat for people of all ages. Pour it
            over a scoop of ice-cream for a bit of indulgence.</p>
        <p class="tc_price">12 Pack Carton $32.00</p>
        <div class="ProductActionAdd">
            <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=31"
               class="button icon-Add To Cart" title="Add To Cart">Add To Cart</a>
        </div>

    </li>
    <li data-product="29">
        <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=29"
           class="tc_view_single_product">
        </a><a href="https://store.margaretriverbeverages.com.au/premium-lemonade/"><img
            src="https://cdn1.bigcommerce.com/server4500/e9906/products/29/images/140/012-MRBCo-160223-JWyld__42094.1467359554.1125.1125.jpg?c=2"
            alt="Premium Lemonade"></a>
        <h2 class="tc_product_title">Premium Lemonade</h2>
        <p>A new and innovative twist on the classic recipe, our Premium Lemonade delivers a refined flavour and dry
            finish. Enjoy it on its own or as the ideal mixer.&nbsp;</p>
        <p class="tc_price">12 Pack Carton $32.00</p>
        <div class="ProductActionAdd">
            <a href="https://store.margaretriverbeverages.com.au/cart.php?action=add&amp;product_id=29"
               class="button icon-Add To Cart" title="Add To Cart">Add To Cart</a>
        </div>

    </li>
</ul>
</section>
            
          
!
            
              * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    background-color: #f6f6f6;
}

#container {
    width: 100%;
    max-width: 80rem;
    margin: 2.5rem auto;
}

ul.ProductList {
    text-align: center;
    list-style: none;
}

.ProductList > li {
    padding-top: 36px;
    float: left;
    display: inline-block;
    width: 33.333%;
    padding: 2.5rem;
    text-align: left;
    position: relative;
}
.ProductActionAdd {
    position: absolute;
    bottom: 0;
}
.ProductActionAdd > a {
    background-color: green;
    color: #fff;
    padding: .5rem 1rem;
    text-decoration: none;
}
img {
    max-width: 100%;
}

ul.ProductList > li:nth-child(4) {
    clear: both;
}


            
          
!
            
              function resizeProducts(){
    var tallest = -1;
    $('.ProductList > li').each(function(){
        if($(this).height() > tallest){
            tallest = $(this).height();
        }
        $('.ProductList > li').each(function(){
            $(this).height(tallest);
        });
    });
}

$(function(){
    resizeProducts();
});
            
          
!
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