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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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="py-2 bg-white border-bottom">
   <div class="container d-flex flex-wrap">
      <ul class="nav me-auto">
         <li class="nav-item"><a href="#" class="nav-link link-dark px-2 active" aria-current="page">Home</a></li>
         <li class="nav-item"><a href="#" class="nav-link link-dark px-2">Features</a></li>
         <li class="nav-item"><a href="#" class="nav-link link-dark px-2">Pricing</a></li>
         <li class="nav-item"><a href="#" class="nav-link link-dark px-2">FAQs</a></li>
         <li class="nav-item"><a href="#" class="nav-link link-dark px-2">About</a></li>
      </ul>
      <ul class="nav">
         <li class="nav-item"><a href="#" class="nav-link link-dark px-2">Login</a></li>
         <li class="nav-item"><a href="#" class="nav-link link-dark px-2">Sign up</a></li>
      </ul>
   </div>
</nav>

<div class="page">

   <header class="page-header"
           style="background-image:url('https://images.unsplash.com/photo-1517142099008-c2eb9227b575?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYzMTY0MzU5Ng&ixlib=rb-1.2.1&q=50');">
      <div class="container position-relative px-5 text-center text-white">
         <div class="row gx-5 justify-content-center">
            <div class="col-lg-8">
               <h1 class="page-header-ui-title mb-3">Consectetur</h1>
               <p class="page-header-ui-text mb-0">Lorem ipsum dolor sit amet, consectetur adipiscing elit!</p>
            </div>
         </div>
      </div>
      <svg class="position-absolute bottom-0 start-50 translate-middle-x w-100"
           style="height:3rem;"
           xmlns="http://www.w3.org/2000/svg"
           viewBox="0 0 144.54 17.34"
           preserveAspectRatio="none"
           fill="#eef0f2">
         <path d="M144.54,17.34H0V0H144.54ZM0,0S32.36,17.34,72.27,17.34,144.54,0,144.54,0"></path>
      </svg>
   </header>
   <section class="post pb-4">
      <div class="container-md">

         <div class="card mb-4">
            <div class="row g-0 overflow-hidden flex-column flex-md-row position-relative">
               <div class="col-md-4 col-sm-12">
                  <div class="post-featured-img"
                       style="background-image: url('https://images.unsplash.com/photo-1630431789839-99f88935932e?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYzMTY0NTI5OQ&ixlib=rb-1.2.1&q=50');"></div>
               </div>
               <div class="col-md-8 col-sm-12 d-flex flex-column position-static">
                  <div class="card-body">
                     <h5 class="card-title fw-bold mb-1">Lorem ipsum dolor sit amet, consectetur adipiscing elit</h5>
                     <p class="card-text fs-5">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.</p>
                  </div>
                  <div class="card-footer pt-0">
                     <hr class="mt-0" />
                     <div class="d-flex align-items-center">
                        <img src="https://images.unsplash.com/photo-1631476767348-5c7b63a29993?rect=640,640,600,600&w=256&h=256&q=50"
                             class="post-preview-meta-img me-2 rounded-circle" />
                     <div class="d-flex flex-grow-1 flex-column justify-content-center align-items-start">
                        <div class="small fw-bold">Dolore Magna</div>
                        <div class="small text-muted">Sept 14 · 5 min read</div>
                     </div>
                     </div>
                  </div>
               </div>
            </div>
         </div>

         <div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-4 mb-4 pb-4">
            <div class="col">
               <div class="card h-100">
                  <img class="card-img-top" src="https://images.unsplash.com/photo-1631415928999-c375f0bc21c7?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYzMTY0NTI5OQ&ixlib=rb-1.2.1&q=50&fit=crop&w=852&h=480" alt="Placeholder">
                  <div class="card-body pb-0">
                     <h5 class="card-title fw-bold mb-1">Card with image and links</h5>
                     <p class="card-text">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
                     <p class="card-text">Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
                  </div>
                  <div class="card-footer pt-0">
                     <hr />
                     <div class="d-flex align-items-center">
                        <img src="https://images.unsplash.com/photo-1631476767348-5c7b63a29993?rect=640,640,600,600&w=256&h=256&q=50"
                             class="post-preview-meta-img me-2 rounded-circle" />
                        <div class="d-flex flex-grow-1 flex-column justify-content-center align-items-start">
                           <div class="small fw-bold">Dolore Magna</div>
                           <div class="small text-muted">Sept 14 · 5 min read</div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col">
               <div class="card h-100">
                  <img class="card-img-top" src="https://images.unsplash.com/photo-1628964172854-43747c7b5119?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYzMTY0OTUzNQ&ixlib=rb-1.2.1&q=50&fit=crop&w=852&h=480" alt="Placeholder">
                  <div class="card-body pb-0">
                     <h5 class="card-title fw-bold mb-1">Card with image and links</h5>
                     <p class="card-text">Aenean at ligula vel diam faucibus pellentesque in sit amet augue. Mauris pellentesque bibendum aliquam. Aliquam et ligula nec orci aliquet lobortis. In congue vitae massa eu auctor.</p>
                  </div>
                  <div class="card-footer pt-0">
                     <hr />
                     <div class="d-flex align-items-center">
                        <img src="https://images.unsplash.com/photo-1631476767348-5c7b63a29993?rect=640,640,600,600&w=256&h=256&q=50"
                             class="post-preview-meta-img me-2 rounded-circle" />
                        <div class="d-flex flex-grow-1 flex-column justify-content-center align-items-start">
                           <div class="small fw-bold">Dolore Magna</div>
                           <div class="small text-muted">Sept 14 · 5 min read</div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col">
               <div class="card h-100">
                  <img class="card-img-top" src="https://images.unsplash.com/photo-1630750793250-71173d8bfa5e?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYzMTY0NTI5OQ&ixlib=rb-1.2.1&q=50&fit=crop&w=852&h=480" alt="Placeholder">
                  <div class="card-body pb-0">
                     <h5 class="card-title fw-bold mb-1">Card with image and links</h5>
                     <p class="card-text">Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
                     <p class="card-text">Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
                  </div>
                  <div class="card-footer pt-0">
                     <hr />
                     <div class="d-flex align-items-center">
                        <img src="https://images.unsplash.com/photo-1631476767348-5c7b63a29993?rect=640,640,600,600&w=256&h=256&q=50"
                             class="post-preview-meta-img me-2 rounded-circle" />
                        <div class="d-flex flex-grow-1 flex-column justify-content-center align-items-start">
                           <div class="small fw-bold">Dolore Magna</div>
                           <div class="small text-muted">Sept 14 · 5 min read</div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col">
               <div class="card h-100">
                  <img class="card-img-top" src="https://images.unsplash.com/photo-1629662182419-960a8596bba0?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYzMTY1MDE1Ng&ixlib=rb-1.2.1&q=50&fit=crop&w=852&h=480" alt="Placeholder">
                  <div class="card-body pb-0">
                     <h5 class="card-title fw-bold mb-1">Card with image and links</h5>
                     <p class="card-text">Nullam vel pharetra lectus. Nulla faucibus nisi quis lectus posuere hendrerit. Maecenas sagittis pharetra sem, vitae mattis est sodales in.</p>
                     <p class="card-text">Quisque ex purus, commodo nec elit eu, cursus tempus elit.</p>
                  </div>
                  <div class="card-footer pt-0">
                     <hr />
                     <div class="d-flex align-items-center">
                        <img src="https://images.unsplash.com/photo-1631476767348-5c7b63a29993?rect=640,640,600,600&w=256&h=256&q=50"
                             class="post-preview-meta-img me-2 rounded-circle" />
                        <div class="d-flex flex-grow-1 flex-column justify-content-center align-items-start">
                           <div class="small fw-bold">Dolore Magna</div>
                           <div class="small text-muted">Sept 14 · 5 min read</div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col">
               <div class="card h-100">
                  <img class="card-img-top" src="https://images.unsplash.com/photo-1619010549583-aba7425d28dc?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYzMTY1MDE5OQ&ixlib=rb-1.2.1&q=50&fit=crop&w=852&h=480" alt="Placeholder">
                  <div class="card-body pb-0">
                     <h5 class="card-title fw-bold mb-1">Card with image and links</h5>
                     <p class="card-text">Mauris mattis condimentum feugiat. Suspendisse viverra, arcu id volutpat hendrerit, turpis purus mollis dui, sed facilisis nulla erat eget lacus.</p>
                     <p class="card-text">Mauris commodo odio nec porttitor ornare. Suspendisse hendrerit dictum est ac gravida.</p>
                  </div>
                  <div class="card-footer pt-0">
                     <hr />
                     <div class="d-flex align-items-center">
                        <img src="https://images.unsplash.com/photo-1631476767348-5c7b63a29993?rect=640,640,600,600&w=256&h=256&q=50"
                             class="post-preview-meta-img me-2 rounded-circle" />
                        <div class="d-flex flex-grow-1 flex-column justify-content-center align-items-start">
                           <div class="small fw-bold">Dolore Magna</div>
                           <div class="small text-muted">Sept 14 · 5 min read</div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>
            <div class="col">
               <div class="card h-100">
                  <img class="card-img-top" src="https://images.unsplash.com/photo-1631451095765-2c91616fc9e6?crop=entropy&cs=srgb&fm=jpg&ixid=MnwxNDU4OXwwfDF8cmFuZG9tfHx8fHx8fHx8MTYzMTY1MDIzOA&ixlib=rb-1.2.1&q=50&fit=crop&w=852&h=480" alt="Placeholder">
                  <div class="card-body pb-0">
                     <h5 class="card-title fw-bold mb-1">Card with image and links</h5>
                     <p class="card-text">Nullam sit amet aliquam arcu. Phasellus gravida vitae metus a tristique.</p>
                     <p class="card-text">Nunc quis mauris accumsan, sollicitudin orci vitae, tempor ex. Aliquam tempus ante in felis lacinia pellentesque vitae eget sapien.</p>
                  </div>
                  <div class="card-footer pt-0">
                     <hr />
                     <div class="d-flex align-items-center">
                        <img src="https://images.unsplash.com/photo-1631476767348-5c7b63a29993?rect=640,640,600,600&w=256&h=256&q=50"
                             class="post-preview-meta-img me-2 rounded-circle" />
                        <div class="d-flex flex-grow-1 flex-column justify-content-center align-items-start">
                           <div class="small fw-bold">Dolore Magna</div>
                           <div class="small text-muted">Sept 14 · 5 min read</div>
                        </div>
                     </div>
                  </div>
               </div>
            </div>

         </div>

         <nav>
            <ul class="pagination justify-content-center">
               <li class="page-item">
                  <a class="page-link" href="#" aria-label="Previous">
                     <span class="zmdi zmdi-chevron-left" aria-hidden="true"></span>
                  </a>
               </li>
               <li class="page-item active"><a class="page-link" href="#">1</a></li>
               <li class="page-item"><a class="page-link" href="#">2</a></li>
               <li class="page-item"><a class="page-link" href="#">3</a></li>
               <li class="page-item disabled"><a class="page-link" href="#">4</a></li>
               <li class="page-item"><a class="page-link" href="#">5</a></li>
               <li class="page-item">
                  <a class="page-link" href="#" aria-label="Next">
                     <span class="zmdi zmdi-chevron-right" aria-hidden="true"></span>
                  </a>
               </li>
            </ul>
         </nav>

      </div>
   </section>

   <p class="pb-5 text-center small text-muted">
      <span>Powered by <a href="https://codepen.io/" target="_blank">codepen.io</a></span>
      <br>
      <span>Studio KonKon | 2021</span>
   </p>

</div>

              
            
!

CSS

              
                body {
   background-color: #eef0f2;
}

.page-header {
   position: relative;
   padding-top: 8rem;
   padding-bottom: 8rem;
   background-position: 50%;
   background-size: cover;
   background-repeat: no-repeat;

   &:before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      background-color: rgba($black, .6);
   }
}

.post {
   padding-top: map-get($spacers, 5) * 2;
   
   &-featured-img {
      height: 100%;
      width: 100%;
      min-height: 15rem;
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
   }
   
   &-preview-meta {
      &-img {
         height: 2.25rem;
         width: 2.25rem;
      }
   }
}

.card-review {
   img {
      width: 2.5rem;
      height: 2.5rem;
   }
}

              
            
!

JS

              
                
              
            
!
999px

Console