Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                
 <!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

    <title>Bootstrap Carousel</title>
  </head>
  <body>
 
    
    
 <div class="container text-center my-3">
    <div class="row mx-auto my-auto">
        <div id="myCarousel" class="carousel slide w-100" data-ride="carousel">
            <div class="carousel-inner" role="listbox">
                <div class="carousel-item py-5 active">
                    <div class="row">
                        <div class="col col1">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card 1</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                        <div class="col col2">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card 2</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                        <div class="col col3">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card 3</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                        <div class="col col4">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card 4</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                        <div class="col col5">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card 4</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="carousel-item py-5">
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="carousel-item py-5">
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="carousel-item py-5">
                    <div class="row">
                        <div class="col-sm-6">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <div class="card">
                              <div class="card-body">
                                <h4 class="card-title">Card</h4>
                                <p class="card-text">Some make up the bulk of the card's content.</p>
                                <a href="#" class="btn btn-primary">Button</a>
                              </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-12">
            <a class="carousel-control-prev text-dark" href="#myCarousel" role="button" data-slide="prev">
                <span class="fa fa-chevron-left" aria-hidden="true"></span>
                <span class="sr-only">Previous</span>
            </a>
            <a class="carousel-control-next text-dark" href="#myCarousel" role="button" data-slide="next">
                <span class="fa fa-chevron-right" aria-hidden="true"></span>
                <span class="sr-only">Next</span>
            </a>
        </div>
    </div>
</div>   
    
    
    
    
    
    

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
  </body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console