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>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="Description" content="Enter your description here"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<title>Title</title>
</head>
<body>
    <div class="d-flex flex-lg-column flex-md-row">
        <div class="col-lg-12 col-md-6 col-sm-3 bg-danger">My Item</div>
        <div class="col-lg-12 col-md-6 col-sm-3 bg-success">Second item?</div>
        <div class="col-lg-12 col-md-6 col-sm-3 bg-warning">Third item, Definitely</div>
        <div class="col-lg-12 col-md-6 col-sm-3 bg-info">Prob my last item</div>
    </div>
    <div class="container">
        <div class="bg-dark text-light">LET'S PLAY AROUND... Notice how the 
            screen rearranges the items as you change the screen size!</div>
    </div>
    <div class="container">
        <div class="bg-light text-dark border-dark">Notice how the stretching of 
            the content moves relatively! Imagine there's a big grid of 12 boxes
            and you've simply told each item how many boxes to fill. Also be aware
            you can send content off the edge of the screen if they add up to 
            more than 12 boxes - what's on the screen always adds up to 12.
        </div>
    </div>
    <div class="d-flex flex-lg-column flex-md-row">
        <div class="col-lg-6 col-md-3 col-sm-1 bg-danger">My Item</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-success">Second item?</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-warning">Third item, Definitely</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-info">Prob my last item</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-danger">numbah five alive</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-success">six is after five</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-warning">lalalala</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-info">I crave thai food</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-danger">bach rocks</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-success">feeding a toddler lemon ice cream</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-warning">my neighbor's dogs are loud</div>
        <div class="col-lg-6 col-md-3 col-sm-1 bg-info">THE END</div>
    </div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/2.9.2/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.0/js/bootstrap.min.js"></script>
</body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console