Page 221 - Computer Software Application TP - Volume 1
P. 221

COMPUTER SOFTWARE APPLICATION - CITS




              </head>
              <body>
              <div class=”container mt-5”>
              <h1>Flex Example</h1>
              <div class=”d-flex”>
              <div class=”flex-grow-1 bg-primary p-3 mr-3”>Flex item 1</div>
              <div class=”bg-secondary p-3”>Flex item 2</div>
              </div>
              <h2>Vertical Alignment</h2>
              <div class=”d-flex align-items-start mb-3”>
              <div class=”p-2 bg-info”>Start aligned</div>
              </div>
              <div class=”d-flex align-items-center mb-3”>
              <div class=”p-2 bg-success”>Center aligned</div>
              </div>
              <div class=”d-flex align-items-end”>
              <div class=”p-2 bg-warning”>End aligned</div>
              </div>
              <h2>Horizontal Alignment</h2>
              <div class=”d-flex justify-content-start mb-3”>
              <div class=”p-2 bg-danger”>Start aligned</div>
              </div>
              <div class=”d-flex justify-content-center mb-3”>
              <div class=”p-2 bg-primary”>Center aligned</div>
              </div>
              <div class=”d-flex justify-content-end”>
              <div class=”p-2 bg-secondary”>End aligned</div>
              </div>
              </div>
              <script src=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js”></script>
              </body>
              </html>
           3  Save the program as a .html file
           4  Open the html file with a web browser
           5  Verify the output.































                                                           206

                               CITS : IT & ITES - Computer Software Application - Exercise 49
   216   217   218   219   220   221   222   223   224   225   226