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

              
                <!-- NavBar -->
<!-- Top Bar -->
<header>
  <div class="top-bar">
      <div class="container">
         <div class="row">
            <div class="col-md-12">
               <ul class="header_top-links">
                  <li><a href="#">Apple</a></li>
                  <li><a href="#">Microsoft</a></li>
                  <li><a href="#">airbnb</a></li>
                  <li><a href="#">google</a></li>
               </ul>
            </div>
         </div>
      </div>
 </div>
<!-- Top Bar -->
   
<!-- Nav Main -->
<div class="navbar-main">
     <div class="container">
         <div class="row">
           <div class="col-lg-3 col-md-2 col-sm-2 col-xs-12 nav-mobile">
             <div class="logo">
               <div class="logo-desktop">
                 <a href="#"><img src="https://www.dropbox.com/s/9glxr4eqgku1tsm/netfliximages.png?raw=1" alt="company-logo"></a>
               </div>
             </div>
           </div>
            <div class="col-lg-9 col-md-10 col-sm-10 col-xs-12 menu-container">
               <ul class="header-navbar-main">
                  <li class="menu-item"><a href="#">Menu 1</a></li>
                  <li class="menu-item"><a href="#">Menu 2</a></li>
                  <li class="menu-item"><a href="#">Menu 3</a></li>
                  <li class="menu-item"><a href="#">Menu 4</a></li>
                  <li class="menu-item"><a href="#">Menu 5</a></li>
               </ul>
            </div>
         </div>
      </div>
  </div>
 </header>
<!-- Nav Main -->
<!-- ./end Navbar -->

<!-- Custom cards -->
<section class="mt-5 cards-section">
  <div class="container">
    <h3>Custom Cards</h3>
    <div class="row">
      <div class="col-lg-3 col-md-6 mt-md-3 d-flex">
        <div class="item-card d-flex">
          <div class="body">
            <div class="card-title red">
              <h5>This is my title and some</h5>
            </div>
            <div class="body-text text-center">This is where you put text for your card. Break on through to the other side.</div>
            <div class="text-center btn-pad"> <a href="#" class="btn btn-green ">Go somewhere</a></div>

          </div>
        </div>
      </div>

      <div class="col-lg-3 col-md-6 mt-md-3 d-flex">
        <div class="item-card d-flex">
          <div class="body">
            <div class="card-title l-blue">
              <h5>This is my title and some</h5>
            </div>
            <div class="body-text text-center">This is where you put text for your card. Break on through to the other side.</div>
            <div class="text-center btn-pad"> <a href="#" class="btn btn-green ">Go somewhere</a></div>

          </div>
        </div>
      </div>

      <div class="col-lg-3 col-md-6 mt-md-3 d-flex">
        <div class="item-card d-flex">
          <div class="body">
            <div class="card-title green">
              <h5>This is my title and some</h5>
            </div>
            <div class="body-text text-center">This is where you put text for your card. Break on through to the other side.</div>
            <div class="text-center btn-pad"> <a href="#" class="btn btn-green ">Go somewhere</a></div>

          </div>
        </div>
      </div>

      <div class="col-lg-3 col-md-6 mt-md-3 d-flex">
        <div class="item-card d-flex">
          <div class="body">
            <div class="card-title blue">
              <h5>This is my title and some</h5>
            </div>
            <div class="body-text text-center">This is where you put text for your card. Break on through to the other side.</div>
            <div class="text-center btn-pad"> <a href="#" class="btn btn-green ">Go somewhere</a></div>

          </div>
        </div>
      </div>

    </div>
    <hr>
  </div>

</section>

<!-- ./ Custom cards -->

<!-- Featured Cards -->
<section class="my-5">
  <div class="container">
    <h3 class="mb-5">Featured Cards</h3>
    <div class="row">

      <div class="company-card">
        <div class="company-c-body">
          <a class="company-img d-flex align-items-center" href="#">
            <img src="https://www.dropbox.com/s/1sr569k11yn9bfw/google-p.png?raw=1" alt="google logo">
          </a>
          <div class="company-c-title text-center mt-1 mb-3">
            <h5>Google Inc.</h5>
          </div>
          <div class="btn-container text-center mb-3">
            <a href="#" class="btn btn-sm btn-green">28 Open Jobs</a>
          </div>
        </div>
      </div>

      <div class="company-card">
        <div class="company-c-body">
          <a class="company-img d-flex align-items-center" href="#">
            <img src="https://www.dropbox.com/s/f2ge0a46zlbnl8j/439px-microsoft_logo.svg.png?raw=1">
          </a>
          <div class="company-c-title text-center mt-1 mb-3">
            <h5>Microsoft</h5>
          </div>
          <div class="btn-container text-center mb-3">
            <a href="#" class="btn btn-sm btn-green">17 Open Jobs</a>
          </div>
        </div>
      </div>

      <div class="company-card">
        <div class="company-c-body">
          <a class="company-img d-flex align-items-center" href="#">
            <img src="https://www.dropbox.com/s/9glxr4eqgku1tsm/netfliximages.png?raw=1" alt="netflix log">
          </a>
          <div class="company-c-title text-center mt-1 mb-3">
            <h5>Netflix</h5>
          </div>
          <div class="btn-container text-center mb-3">
            <a href="#" class="btn btn-sm btn-green">12 Open Jobs</a>
          </div>
        </div>
      </div>

      <div class="company-card">
        <div class="company-c-body">
          <a class="company-img d-flex align-items-center" href="#">
            <img src="https://www.dropbox.com/s/zvsxn9ajqyg0zlo/airbnb.png?raw=1">
          </a>
          <div class="company-c-title text-center mt-1 mb-3">
            <h5>airbnb</h5>
          </div>
          <div class="btn-container text-center mb-3">
            <a href="#" class="btn btn-sm btn-green">7 Open Jobs</a>
          </div>
        </div>
      </div>
      
       <div class="company-card">
        <div class="company-c-body">
          <a class="company-img d-flex align-items-center" href="#">
            <img src="https://www.dropbox.com/s/p4f1li718r3rttz/intelx.png?raw=1" alt="intel logo">
          </a>
          <div class="company-c-title text-center mt-1 mb-3">
            <h5>intel inc.</h5>
          </div>
          <div class="btn-container text-center mb-3">
            <a href="#" class="btn btn-sm btn-green">21 Open Jobs</a>
          </div>
        </div>
      </div>
      
       <div class="company-card">
        <div class="company-c-body">
          <a class="company-img d-flex align-items-center" href="#">
            <img src="https://www.dropbox.com/s/g5a861xmsindy2f/apple_computer_logo_rainbow_0.jpg?raw=1" alt="apple logo">
          </a>
          <div class="company-c-title text-center mt-1 mb-3">
            <h5>apple co.</h5>
          </div>
          <div class="btn-container text-center mb-3">
            <a href="#" class="btn btn-sm btn-green">18 Open Jobs</a>
          </div>
        </div>
      </div>

    </div>
  </div>
</section>
<!-- **********************  Large Cards ************************************* -->
<!--Large Cards -->
<section class="my-5 screen company-cards bg-light py-5">
  <div class="container">
    <h3>Large Cards</h3>
    <div class="row">

      <div class="col-lg-4 col-md-6 col-sm-12 profile">
        <a href="#">
         <span class="header">
           <img class="c-img img-fluid" src="https://www.dropbox.com/s/3o7zumzokwvhvv9/office800.jpg?raw=1" alt="netflix office">
         </span>
         <span class="body">
           <small class="stats">27 open jobs</small>
           <span class="info"><strong class="c-name">Netflix Co.</strong></span>
           <span class="location">
             <i class="fas fa-globe-asia"></i>
           </span>
           <span class="place">Winchester Circle Los Gatos, CA</span>
         </span>
         <span class="c-logo" title="Netflix">
           <img class="c-img img-fluid" src="https://www.dropbox.com/s/9glxr4eqgku1tsm/netfliximages.png?raw=1" alt="netflix logo">
         </span>
       </a>
      </div>

      <div class="col-lg-4 col-md-6  col-sm-12 profile">
        <a href="#">
         <span class="header">
           <img class="c-img" src="https://www.dropbox.com/s/vpc3b841ahlg08f/googl800.jpg?raw=1" alt="google office">
         </span>
         <span class="body">
           <small class="stats">27 open jobs</small>
           <span class="info"><strong class="c-name">Google Inc.</strong></span>
           <span class="location">
             <i class="fas fa-globe-asia"></i>
           </span>
           <span class="place">
Mountain View, CA, United States</span>
         </span>
         <span class="c-logo" title="Google">
           <img class="c-img" src="https://www.dropbox.com/s/1sr569k11yn9bfw/google-p.png?raw=1" alt="google logo">
         </span>
       </a>
      </div>

      <div class="col-lg-4 col-md-6  col-sm-12 profile">
        <a href="#">
         <span class="header">
           <figure>
           <img class="c-img img-fluid" src="https://www.dropbox.com/s/56noyx6ue2oa8nk/office-min800x355.jpg?raw=1" alt="office image">
             </figure>
         </span>
         <span class="body">
           <small class="stats">27 open jobs</small>
           <span class="info"><strong class="c-name">Microsoft Corporation</strong></span>
           <span class="location">
             <i class="fas fa-globe-asia"></i>
           </span>
           <span class="place">Redmond, WA, United States</span>
         </span>
         <span class="c-logo" title="Microsoft">
           <img class="c-img" src="https://www.dropbox.com/s/f2ge0a46zlbnl8j/439px-Microsoft_logo.svg.png?raw=1" alt="microsoft logo">
         </span>
       </a>
      </div>

    </div>
    <!-- ./row-->
  </div>
</section>
              
            
!

CSS

              
                /* NavBar -top */
.top-bar {
  position: relative;
  background-color: #a62027;
  border-bottom: 1px solid #851a1f;
  width: 100%;
  z-index: 5;
  top: 0;

  li {
    display: inline-block;
    font-weight: 400;
  }
  ul li {
    padding: 8px 20px 0 20px;
    font-weight:600;
  }
}
.header_top-links {
  list-style-type: none;
  text-align: right;
  font-size: 0.875em;
  margin: 0 0 10px 0;
  line-height: 100%;

  a {
    color: #fff;
  }
}

/* Navbar-main */

.navbar-main {
  background-color: #c3262f;
  transition: all 0.5s ease 0s;
  position: relative;
  z-index: 15;

  .logo-desktop img {
    max-width: 100px;

    padding: 10px 0;
  }
  .menu-container {
    position: static;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;

    .header-navbar-main {
      list-style-type: none;
      margin: 0;
      line-height: 270%;
      padding: 0;
      border-right: 1px solid #d25c63;
      border-left: 1px solid #891b20;
      float: right;
      li {
        padding: 0;
        border-left: 1px solid #d25c63;
        border-right: 1px solid #891b20;
      }
    }
  }
  a {
    color: #fff;
    font-weight:600;
  }

  ul {
    display: inline-flex;
  }
}

.navbar-main .menu-container .header-navbar-main li {
  padding: 0 50px;
}

@media (max-width:998px) {
  .navbar-main .logo-desktop img{
    margin-left: -80px
  }
}

@media (max-width:852px) {
  
    .top-bar, .navbar-main {
      display:none;
    }
  
}
/* ===================== end NavBar ==========================   */
/* Custom cards */
.cards-section {
  h3,
  h5 {
    font-weight: 700 !important;
  }
}

.btn-green {
  background-color: #17c3ba;
  color: #fff;
}

.btn:hover {
  color: #fff;
  opacity: 0.8 !important;
}

.btn-pad {
  padding-bottom: 50px;
}

.item-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 271px;
  height: 100%;
}

.card-title {
  padding: 30px;
  border-radius: 5px 5px 0 0;
  color: #fff;
  text-align: center;
}

.body-text {
  height: 100px;
  padding: 0 20px 10px;
}

/* colors  */

.red {
  background-color: #eb5168;
}
.l-blue {
  background-color: #4ec1fc;
}

.green {
  background-color: #17c3ba;
}

.blue {
  background-color: #1d386c;
}

/* ./Custom cards ============================================== */

/*  Company cards  */
#screen {
  margin-bottom: 200px;
}

.bg-light {
  background-color: #f5f5f5 !important;
}

.company-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 170px;
  margin: 8px;

  h5 {
    font-weight: 600;
  }
}

.company-img {
  height: 60px;
  width: 60px;
  margin: -25px auto 0 auto;
  border: 2px solid #ddd;
  border-radius: 5px;
  padding: 3px;
  transition: all 0.3s ease-out;

  &:hover {
    transform: scale(1.1);
  }
}

@media (max-width: 500px) {
  .company-card {
    margin: 30px auto;
  }

  .item-card {
    margin: 10px auto;
  }

  .col-lg-3 {
    margin: 8px 0;
  }
}

@media (min-width: 501px) and (max-width: 1024px) {
  .company-card {
    margin: 30px auto;
  }
}

/* Large Card  */
.screen {
  margin-bottom: 200px;

  .bg-light {
    background-color: #f8f8f8 !important;
  }
}

.company-cards .header {
  display: block;
  height: 175px;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 8px 8px 0 0;

  img {
    background-position: 50% 50%;
    background: no-repeat;
    background-size: auto;
    background-size: cover;
    height: 175px;
    width: 100%;
  }
}

.profile .body {
  display: block;
  position: relative;
  padding: 48px 19.2px 19.2px;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
}

.company-cards .stats {
  position: absolute;
  top: 8px;
  color: #757575;
  display: block;
  font-size: 11px;
  margin-bottom: 19.2px;
  text-transform: uppercase;
}

.company-cards .info {
  max-height: 43px;
  overflow: hidden;
}

.company-cards .c-name {
  display: block;
  line-height: 1.35;
  color: #333;
}

.company-cards .location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #757575;
  display: block;
  font-size: 13px;
  margin-top: 3px;
}

.company-cards .place {
  border-radius: 10px;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-bottom: 0;
  background: #fff;
  color: #373c44;
  overflow: hidden;
  transform: translateZ(0);
}

.company-cards .c-logo {
  background: #fff;
  border-radius: 5px;
  right: 25px;
  margin: 0;
  padding: 9.12px;
  position: absolute;
  top: 150px;
  height: 4em;
  width: 4em;
  ext-align: center;
  max-height: 110px;
  overflow: hidden;

  img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
  }
}

@media (max-width: 1024px) {
  .profile {
    margin: 10px 0;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console