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

              
                 <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->

<body class="hm-gradient">

    <main>
        
        <!--MDB Cards-->
        <div class="container">

            <div class="text-center darken-grey-text mb-4">
                 
 
            </div>

            <!-- Grid row -->
            <div class="row">
            
                <!-- Grid column -->
                <div class="col-lg-4 col-md-12">
                    
                    <!--Card-->
                    <div class="card">

                        <!--Card image-->
                        <div class="view overlay hm-white-slight">
                            <img src="https://mdbootstrap.com/img/Photos/Horizontal/People/6-col/img (133).jpg" class="img-fluid" alt="photo">
                            <a href="#!">
                                <div class="mask"></div>
                            </a>
                        </div>

                        <!--Card content-->
                        <div class="card-body">
                            <!--Title-->
                            <h4 class="card-title">Life in Brazil</h4>
                            <!--Text-->
                            <p class="card-text">Lorem ipsum dolor sit amet, consectetur sunt elit. Impedit iste perspiciatis earum voluptatem ad possimus itaque, eum aspernatur, nostrum dignissimos beatae id in illum accusantium adipisicing suscipit sunt doloremque.</p>
                            <a href="#" class="btn btn-deep-orange btn-md">Read more</a>
                        </div>

                    </div>
                    <!--/.Card-->
            
                </div>
                <!-- Grid column -->
            
                <!-- Grid column -->
                <div class="col-lg-4 col-md-6 mb-4">
            
                    <!--Card-->
                    <div class="card">

                        <!--Card image-->
                        <div class="view overlay hm-white-slight">
                            <img src="https://mdbootstrap.com/img/Photos/Horizontal/People/6-col/img (134).jpg" class="img-fluid" alt="photo">
                            <a href="#!">
                                <div class="mask"></div>
                            </a>
                        </div>

                        <!--Card content-->
                        <div class="card-body text-center">
                            <!--Title-->
                            <h4 class="card-title indigo-text"><strong>About me</strong></h4>
                            <!--Text-->
                            <p class="card-text">Sed ut perspiciatis unde omnis iste natus error volosit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab eum illo inventore veritatis quasi architecto beatae vitae dicta explicabo.</p>
                            <a href="#" class="btn btn-indigo btn-md">Learn more</a>
                        </div>

                    </div>
                    <!--/.Card-->
            
                </div>
                <!-- Grid column -->
            
                <!-- Grid column -->
                <div class="col-lg-4 col-md-6 mb-4">
            
                    <!--Card-->
                    <div class="card">

                        <!--Card image-->
                        <div class="view overlay hm-white-slight">
                            <img src="https://mdbootstrap.com/img/Photos/Horizontal/People/6-col/img (135).jpg" class="img-fluid" alt="photo">
                            <a href="#!">
                                <div class="mask"></div>
                            </a>
                        </div>

                        <!--Card content-->
                        <div class="card-body text-center">
                            <!--Title-->
                            <h4 class="card-title font-up brown-text">Portrait photography</h4>
                            <!--Text-->
                            <p class="card-text black-text">Nemo enim ipsam voluptatem, consectetur sunt elit. Impedit iste perspiciatis earum voluptatem ad possimus itaque, eum aspernatur, nostrum dignissimos beatae id in illum accusantium adipisicing suscipit sunt doloremque.</p>
                            <a href="#" class="btn btn-brown btn-md">More content</a>
                        </div>

                    </div>
                    <!--/.Card-->
            
                </div>
                <!-- Grid column -->
            
            </div>
            <!-- Grid row -->
            <!-- Grid row -->
            <div class="row">
            
                <!-- Grid column -->
                <div class="col-md-6 mb-4">
            
                    <!--Card-->
                    <div class="card">
                        
                        <!--Card image-->
                        <div class="view overlay hm-white-slight">
                            <img src="https://mdbootstrap.com/img/Photos/Others/butterflies.jpg" class="img-fluid" alt="photo">
                            <a href="#!">
                                <div class="mask"></div>
                            </a>
                        </div>

                        <!--Card content-->
                        <div class="card-body">
                            <!--Title-->
                            <h4 class="card-title">Butterflies are awesome creatures!</h4>
                            <!--Text-->
                            <p class="card-text">At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores est quas molestias excepturi sint occaecati cupiditate non provident similique.</p>
                            <a href="#!" class="btn btn-outline-primary waves-effect">Read more</a>
                        </div>

                    </div>
                    <!--/.Card-->
                                    
                </div>
                <!-- Grid column -->
            
                <!-- Grid column -->
                <div class="col-md-6 mb-4">
            
                    <!--Card-->
                    <div class="card">
                        
                        <!--Card image-->
                        <div class="view overlay hm-white-slight">
                            <img src="https://mdbootstrap.com/img/Photos/Others/portrait.jpg" class="img-fluid" alt="photo">
                            <a href="#!">
                                <div class="mask"></div>
                            </a>
                        </div>

                        <!--Card content-->
                        <div class="card-body">
                            <!--Title-->
                            <h4 class="card-title">The eye is the mirror of the soul</h4>
                            <!--Text-->
                            <p class="card-text">Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est.</p>
                            <a href="#!" class="btn btn-outline-warning waves-effect">Read more</a>
                        </div>

                    </div>
                    <!--/.Card-->
                                    
                </div>
                <!-- Grid column -->
            
            </div>
            <!-- Grid row -->
            <!-- Grid row -->
            <div class="row">
            
                <!-- Grid column -->
                <div class="col-lg-4 col-md-12 mb-4">
                    
                    <!--Card-->
                    <div class="card elegant-color">
                        
                        <!--Card image-->
                        <div class="view overlay hm-white-slight">
                            <img src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/6-col/img (136).jpg" class="img-fluid" alt="Card image cap">
                            <a href="#!">
                                <div class="mask"></div>
                            </a>
                        </div>

                        <!--Card content-->
                        <div class="card-body text-center">
                            <!--Title-->
                            <h4 class="card-title white-text py-3">Amazing wild horses</h4>
                            <!--Text-->
                            <p class="card-text white-text">Sed ut perspiciatis unde omnis iste natus error volosit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab eum illo inventore veritatis quasi architecto beatae vitae dicta explicabo.</p>
                            <a href="#" class="btn btn-info my-3">Read more</a>
                        </div>

                    </div>
                    <!--/.Card-->
            
                </div>
                <!-- Grid column -->
            
                <!-- Grid column -->
                <div class="col-lg-4 col-md-6 mb-4">
            
                    <!--Card-->
                    <div class="card light-blue">
                        
                        <!--Card image-->
                        <div class="view overlay hm-blue-slight">
                            <img src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/6-col/img (137).jpg" class="img-fluid" alt="Card image cap">
                            <a href="#!">
                                <div class="mask"></div>
                            </a>
                        </div>

                        <!--Card content-->
                        <div class="card-body">
                            <!--Title-->
                            <h4 class="card-title white-text py-3">Mountain animals</h4>
                            <!--Text-->
                            <p class="card-text white-text">Lorem ipsum dolor sit amet, consectetur sunt elit. Impedit iste perspiciatis earum voluptatem ad possimus itaque, eum aspernatur, nostrum dignissimos beatae id in illum accusantium adipisicing suscipit sunt doloremque.</p>
                            <a href="#" class="btn btn-warning my-3">Read more</a>
                        </div>

                    </div>
                    <!--/.Card-->
            
                </div>
                <!-- Grid column -->
            
                <!-- Grid column -->
                <div class="col-lg-4 col-md-6 mb-4">
            
                    <!--Card-->
                    <div class="card red">

                        <!--Card image-->
                        <div class="view overlay hm-red-slight">
                            <img src="https://mdbootstrap.com/img/Photos/Horizontal/Nature/6-col/img (138).jpg" class="img-fluid" alt="Card image cap">
                            <a href="#!">
                                <div class="mask"></div>
                            </a>
                        </div>

                        <!--Card content-->
                        <div class="card-body">
                            <!--Title-->
                            <h4 class="card-title white-text py-3">The most beautiful caves</h4>
                            <!--Text-->
                            <p class="card-text white-text">Nemo enim ipsam voluptatem, consectetur sunt elit. Impedit iste perspiciatis earum voluptatem ad possimus itaque, eum aspernatur, nostrum dignissimos beatae id in illum accusantium adipisicing suscipit sunt doloremque.</p>
                            <a href="#" class="btn btn-success my-3">Read more</a>
                        </div>

                    </div>
                    <!--/.Card-->
            
                </div>
                <!-- Grid column -->
            
            </div>
            <!-- Grid row -->
          
            <hr class="my-4">
          
            <div class="text-center darken-grey-text mb-4">
                <h3 class="font-bold mb-3">Here you can find more Cards:</h3>
                <a class="btn btn-danger" href="https://mdbootstrap.com/components/cards/" target="_blank">Bootstrap Cards</a>
            </div>

        </div>
        <!--MDB Cards-->
        
         <!-- MDB core JavaScript -->
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.4.1/js/mdb.min.js"></script>
      
    </main>
  
</body>
              
            
!

CSS

              
                 
              
            
!

JS

              
                
              
            
!
999px

Console