OneCompiler

4.2 Containers and The Grid

99
 <!DOCTYPE html>
<html>
    <head>
        <title> 4.2 Bootstrap: Containers & Grids </title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.1/css/bootstrap.min.css">

		<link href="style.css" rel="stylesheet">
    </head>
    <body>
        <div class="container">
            <!-- A row with an element occupying a column of the max width 12 -->
            <div class="row">
                <div class="col">
                    <p > Here is the widest column. </p>
                </div>
            </div>
            
            <!-- A row with two elements occupying 2 columns of max width 6 -->
            <div class="row">
                <div class="col">
                    <p> Here's one column. </p>
                </div>
                <div class="col">
                    <p> Here's another column. </p>
                </div>
            </div>
            
            <!-- A row with two elements occupying 2 columns of width 6 -->
            <div class="row">
                <div class="col-6">
                    <p> This is the same width as above. </p>
                </div>
                <div class="col-6">
                    <p> This is also the same width as above. </p>
                </div>
            </div>
            
            <!-- A row with three elements occupying 2 columns of the width 5 --> 
            <div class="row">
                <div class="col-5">
                    <p> Here's a smaller column. </p>
                </div>
                <div class="col-5">
                    <p> Here's another smaller column. </p>
                </div>
            </div>
        </div>
        <!-- PART A, B, & C - WRITE YOUR CODE UNDER HERE-->
        
        
    </body>

<!-- Do not remove following lines. They're used to test. -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://sites.webjam.org/grader/assignment4.2.js"></script>
</html>
 /* Please do not edit the code below */

p
{
  border-color: black;
  border-style: solid;
}