Horje Website
Bootstrap 4 Display Inline-flex Classes – Learn Display inline flex classes – Bootstrap Code

Bootstrap 4 Display Inline-flex Classes – Learn Display inline flex classes

Bootstrap 4 Display Inline-flex Classes - Learn Display inline flex classes - Bootstrap Code


 
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <title>Bootstrap 4 Display Inline-flex Classes</title>
  7. <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
  8. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
  9. <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  10. <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
  11. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
  12. <style>
  13.     .bs-example{
  14.     margin: 20px;
  15. }
  16. </style>
  17. </head>
  18. <body>
  19. <div class="bs-example">
  20. <h2>Display Inline-flex Classes</h2>
  21. <p>Use the d-inline-flex class to create a inline-flex container and transform direct children into flex items. You can also add breakpoints (sm, md, lg, xl) to the classes (d-*-inline-flex) to control when the element should be a inline-flex container based on the screen width.</p>
  22. <div class="d-inline-flex bg-dark p-3">
  23. <div class="p-2 bg-success">Flex item 1</div>
  24. <div class="p-2 bg-warning">Flex item 2</div>
  25. <div class="p-2 bg-danger">Flex item 3</div>
  26. </div>
  27. </div>
  28. </body>
  29. </html>



Try Your Self ->



Published:
September 23, 2020
Author:
admin
Category:
Bootstrap Basic, Bootstrap Source Code
Views:
18

This article was posted in Bootstrap Basic, Bootstrap Source Code and tagged , , . Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Horje © 2011 - 2022