Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                <nav class="navbar navbar-toggleable-md navbar-light bg-faded">
  <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="#">Swap's Coffee Bean Emporium</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav">
      <li class="nav-item active">
        <a class="nav-link" href="#">Shop <span class="sr-only">(current)</span></a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Cart</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">About Us</a>
    </ul>
  </div>
</nav>

<center><img class="banner" src="https://uvmdining.sodexomyway.com/images/CoffeeBanner_tcm585-165654.jpg" alt="banner ad"></center>

<div class='products-col'>
  <h2>OUR SELECTION</h2>
  <div class='flex-grid'>
    <div class="blue-mountain col">
  <img src='https://c1.staticflickr.com/4/3927/33987376925_b7ca54ab9a_z.jpg' class= 'thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Blue Mountain </h6>
  <span class="data_price">$150</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div>
    
    <div class="colombian col">
  <img src='https://c1.staticflickr.com/4/3939/33987376465_3feff40be8_z.jpg' class= 'thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Colombian </h6>
  <span class="item_price">$35</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div>
    
    <div class="java col">
  <img src='https://c1.staticflickr.com/4/3947/33987376045_bab0901385_z.jpg' class='thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Java </h5>
  <span class="item_price">$75</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div>
   
 <div class="pre-ground col">
  <img src='https://c1.staticflickr.com/3/2923/33175563003_0e1f3027cb_z.jpg' class='thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Pre-ground </h6>
  <span class="item_price">$15</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div>
    
    <div class="American col">
  <img src='https://c1.staticflickr.com/3/2862/33175563343_d749df808e_z.jpg' class='thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> American </h6>
  <span class="item_price">$42</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div>
    
    <div class="Mocha col">
  <img src='https://c1.staticflickr.com/3/2829/33175563553_800517b481_z.jpg' class='thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Mocha </h6>
  <span class="item_price">$30</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div>
    
    <div class="singapore-coffee col">
  <img src='http://sethlui.com/wp-content/uploads/2015/07/Robusta-Beans.jpg' class='thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Singapore Coffee </h6>
  <span class="item_price">$30</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div>

                                                                                                                          <div class="dark-roast col">
  <img src='http://www.cafraj.net/Portal1/Upload/Block/Image/coffee%20beans%202.jpg' class='thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Dark Roast </h6>
  <span class="item_price">$50</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div>
    
    <div class="Ethiopian col">
  <img src='https://fthmb.tqn.com/p4vCn5V6G9hlWdRR9RS6qMvhCc8=/2048x1365/filters:fill(auto,1)/Coffee-beans-in-sack-582cd4c93df78c6f6a9f903a.jpg' class='thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Ethiopian </h6>
  <span class="item_price">$35</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div>
      
      <div class="light-roast col">
  <img src='https://www.fourthestatecoffee.com/wp-content/uploads/2017/08/Best-Light-Roast-Coffee-Bean.jpg' class='thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Light Roast </h6>
  <span class="item_price">$45</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div>
    
   <div class="breakfast col">
  <img src='https://s3-us-west-2.amazonaws.com/extra-crispy-media/assets/field%2Fimage%2Fgettyimages-167837668.jpg' class='thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Breakfast Blend </h6>
  <span class="item_price">$25</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div> 
      
      <div class="fair-trade col">
  <img src='https://i0.wp.com/www.coffeebrewguides.com/wp-content/uploads/2013/09/pexels-photo-134577.jpeg?resize=1024%2C682' class='thumbnail' img-responsive item_thumb'>
  <h6 class="item_name"> Fair-Trade </h6>
  <span class="item_price">$25</span><br>
  <a class="item_add" href="javascript:;"> Add to Cart </a>
      </div> 
              
            
!

CSS

              
                /*background & typography style*/

.page-title {
  font-family: Cinzel Decorative;
  color: #036564;
  font-size: 82px;
  text-decoration: underline;
}

h2{
  font-family: Cinzel Decorative;
  color: #033649;
  font-size: 32px;
    margin: 50px 0px 50px 0px;
}
.navbar{
  font-family: Cinzel Decorative;
}


.page-text{
  font-family: Playfair Display;
  font-size: 18px;
  margin: 30px 0 0 40px;
}

.background{
  background-color: #EEE8E8;
}

.card {
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 
  margin: 50px 120px 50px 70px;
}

col-xs-6{
  margin: 0px 0px 0px 20px
}

figcaption {
  text-align: left;
}

.flex-grid {
  display: flex;
  flex-flow: row wrap;
  margin: 0;
}

.col {
  flex: 0 1 22%;
  margin: 7px 4px;
  text-align:center;
   padding: 0 0 0 0 ;
}

.h6{
 padding: 0 0 -27px 0 ;
}

.products-col {
  margin-left: 27vw;
}

.main {
  z-index: 3;
  position: relative;
  padding: 40px 10px 0 0;
}

.thumbnail {
  width: 25vw;
  height: 50vh;
}


              
            
!

JS

              
                
              
            
!
999px

Console