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

              
                <section id="services">
  <div class="col-md-10 offset-1">
    <!-- Section Title !-->
    <div class="section-title">
        <h2>Services</h2>
        <p>This is an information about our services.</p>
    </div>
    <!-- Button Filters !-->
    <div class="button-group filters-button-group">
          <button class="button is-checked" data-filter="*">Show all</button>
          <button class="button" data-filter=".service01">service 01</button>
          <button class="button" data-filter=".service02">service 02</button>
          <button class="button" data-filter=".service03">service 03</button>
          <button class="button" data-filter=".service04">service 04</button>
    </div>
  </div>
 <!-- SERVICES !-->
  <div class="container">
    <div class="row grid">
      <!-- SERVICE 01 !-->
      <div class="col-xs-12 col-md-6 col-lg-4 element-item service01" data-category="service01">
        <!-- CARD SERVICE 01 !-->
        <div class="card"><div class="circle"></div>
        <!-- CARD SERVICE IMAGE !--> 
        <img class="card-img-top" src="https://media.sproutsocial.com/uploads/2017/02/10x-featured-social-media-image-size.png" alt="Card image cap">
        <!-- CARD TEXT !-->
        <div class="card-block">
        <h4 class="card-title">Service 01</h4>
        <div class="card-text">
          <!-- MODAL LINKS !-->
            <p class="info-text"><a href="" data-toggle="modal" data-target="#services-info-01">Information</a></p>
           <p class="price-text"><a href="" data-toggle="modal" data-target="#services-price-01">Prices</a></p>
       </div>
     </div>
    </div>
  </div>
      <!-- SERVICE 02 !-->
      <div class="col-xs-12 col-md-6 col-lg-4 element-item service02 service03" data-category="service02">
        <!-- CARD SERVICE 02 !-->
        <div class="card"><div class="circle"></div>
        <!-- CARD SERVICE IMAGE !--> 
        <img class="card-img-top" src="https://media.sproutsocial.com/uploads/2017/08/Social-Media-Video-Specs-Feature-Image.png" alt="Card image cap">
        <!-- CARD TEXT !-->
        <div class="card-block">
        <h4 class="card-title">Service 02</h4>
        <div class="card-text">
          <!-- MODAL LINKS !-->
            <p class="info-text"><a href="" data-toggle="modal" data-target="#services-info">Information</a></p>
           <p class="price-text"><a href="" data-toggle="modal" data-target="#services-price">Prices</a></p>
       </div>
     </div>
    </div>
  </div>
      <!-- SERVICE 03 !-->
      <div class="col-xs-12 col-md-6 col-lg-4 element-item service01 service03" data-category="service03">
        <!-- CARD SERVICE 03 !-->
        <div class="card"><div class="circle"></div>
        <!-- CARD SERVICE IMAGE !--> 
        <img class="card-img-top" src="https://media.sproutsocial.com/uploads/2017/08/Pinterest-Promoted-Video.png" alt="Card image cap">
        <!-- CARD TEXT !-->
        <div class="card-block">
        <h4 class="card-title">Service 03</h4>
        <div class="card-text">
          <!-- MODAL LINKS !-->
            <p class="info-text"><a href="" data-toggle="modal" data-target="#services-info">Information</a></p>
           <p class="price-text"><a href="" data-toggle="modal" data-target="#services-price">Prices</a></p>
       </div>
     </div>
    </div>
  </div>     
 </div>
</div>
<!-- MODALS FOR SERVICES !-->
  <!-- Modal for Service 01 Information !-->
<div class="modal" id="services-info-01">
 <div class="modal-dialog">
   <div class="modal-content">
   <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">Modal Service Title</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
      <!-- Modal body -->
      <div class="modal-body">An actual information about the service that we provide..
      </div>
      <!-- Modal footer -->
      <div class="modal-footer">
      <button type="button" class="btn btn-submit" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>
    <!-- Modal for Service 01 Price !-->
  <div class="modal" id="services-price-01">
 <div class="modal-dialog">
   <div class="modal-content">
   <!-- Modal Header -->
      <div class="modal-header">
        <h4 class="modal-title">Modal Service Price</h4>
        <button type="button" class="close" data-dismiss="modal">&times;</button>
      </div>
      <!-- Modal body -->
      <div class="modal-body">Pricing is the process whereby a business sets the price at which it will sell its products...
      </div>
      <!-- Modal footer -->
      <div class="modal-footer">
      <button type="button" class="btn btn-submit" data-dismiss="modal">Close</button>
      </div>
    </div>
  </div>
</div>
</section>
              
            
!

CSS

              
                /* Section Title */

.section-title h2 {
    position: relative;
    text-align:center;
    font-size: 36px;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 35px;
}

.section-title h2:after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 44%;
    width: 135px;
    height: 2px;
    background-color: #8DC648;
}
.section-title p {
    font-size: 18px;
    line-height:28px;
    text-align:center;
    margin-top:40px;
}

/* Button Filter */
.button-group {
    text-align:center;
}
.button {
    display: inline-block;
    font-family: sans-serif;
    font-size: 16px;
    cursor: pointer;
    color: #000;
    border:none;
    background:none;
    text-transform: lowercase;
  }
.button:hover {
    color: #8DC648;
}
  
  .button:active,
  .button.is-checked {
    color: #8DC648;
  }

  .button:after {
      content: " | ";
      color: #000;
      font-weight: 100;
      padding-left: 10px;
  }
  .button:last-child:after{
      content: ""; 
  }

/* CARD */
.card {
    margin: 25px 0px;
}
.card-block {
    height: 120px;
    padding: 25px;
}

.card-img-top {
    border-radius: 50%;
    align-self: center;
    width: 250px;
    height: 250px;
    padding: 20px;
    z-index: 1;
    margin-top: 15px;
}
.circle{
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: 15px solid #8DC648;
    position:absolute;
    top: 15px;
    left: 40px;
    z-index:0;
    margin-top: 15px;    
}

.card-title {
    text-align:center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 18px;
}
.card-text{
    clear: both;
    padding: 15px;
}
.info-text {
    float: left;
}
.price-text {
    float: right;
}
.card-text a{
    color: #8DC648;
    padding-top: 50px;
    text-decoration: none;
}
.card-text:hover {
    color:#649726;
}

/* MODALS */
.modal-header {
  background-color: #8DC648;
  color: #fff;
}
.modal-body {
  height: 150px;
}
.modal-footer {
  background-color: #8DC648;
  color: #fff;
}

              
            
!

JS

              
                var $grid = $('.grid').isotope({
    itemSelector: '.element-item',
    layoutMode: 'fitRows'
  });
  // filter functions
  var filterFns = {
    // show if number is greater than 50
    numberGreaterThan50: function() {
      var number = $(this).find('.number').text();
      return parseInt( number, 10 ) > 50;
    },
    // show if name ends with -ium
    ium: function() {
      var name = $(this).find('.name').text();
      return name.match( /ium$/ );
    }
  };
  // bind filter button click
  $('.filters-button-group').on( 'click', 'button', function() {
    var filterValue = $( this ).attr('data-filter');
    // use filterFn if matches value
    filterValue = filterFns[ filterValue ] || filterValue;
    $grid.isotope({ filter: filterValue });
  });
  // change is-checked class on buttons
  $('.button-group').each( function( i, buttonGroup ) {
    var $buttonGroup = $( buttonGroup );
    $buttonGroup.on( 'click', 'button', function() {
      $buttonGroup.find('.is-checked').removeClass('is-checked');
      $( this ).addClass('is-checked');
    });
  });
  
              
            
!
999px

Console