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

              
                
<body>
  <div class="container-fluid">
    <h1>Working with Columns</h1>
  </div>

  <div class="container">
    <!--     Row 1 -->
    <div class="row">
      <div class="col-sm-4">
        <!--What this means is the columns will collapse on small screens less than 576px wide -->
        
        <h3>Column 1</h3>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur        adipisicing eli. Lorem ipsum dolor sit amet, consectetur adipisicing eli.</p>
      </div>
      <div class="col-sm-4">
        <h3>Column 2</h3>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing eli. Lorem ipsum dolor sit amet, consectetur adipisicing eli.</p>
      </div>
      <div class="col-sm-4">
        <h3>Column 3</h3>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing eli. Lorem ipsum dolor sit amet, consectetur adipisicing eli.</p>
      </div>
    </div>
    
    <!--     Row 2 -->
    <div class="row">
      <div class="col-sm-4 ">
        <h3>Column 4</h3>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing eli. Lorem ipsum dolor sit amet, consectetur adipisicing eli.</p>
      </div>
      <div class="col-sm-4">
        <h3>Column 5</h3>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing eli. Lorem ipsum dolor sit amet, consectetur adipisicing eli.</p>
      </div>
      <div class="col-sm-4">
        <h3>Column 6</h3>
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing eli. Lorem ipsum dolor sit amet, consectetur adipisicing eli.</p>
      </div>
    </div>
    
  </div>

  <!-- Optional JavaScript -->
 <!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
</body>

</html>
              
            
!

CSS

              
                /* 1.	Change the background color for the first container
2.	Change the text color for the first container
3.	Center the text in the first container
4.	Add padding to the first container
5.	Create an alert between the first container and first row
6.	Change the second row - remove one of the columns
7.	Add a third row - 4 columns
8.	Add a fourth row - but just 1 column.  Have it stretch across 8 grid spaces, but add offset-2
9.	Change the background of every column using bootstrap colors
10.	Play around with spacing - check this out to learn more about the shortcode Bootstrap 
	uses for margin and padding or use the easy to follow Cheat Sheet and look under spacing Utilities 

11.  Bonus!  Figure out how to add Bootstrap Icons to at least two of your column headers.  Hint, the installation is with a CDN and then it works similar to font-awesome*/
              
            
!

JS

              
                
              
            
!
999px

Console