Five equal columns in twitter bootstrap

Five equal columns in twitter bootstrap

https://stackoverflow.com/a/22799354/13338936

For Bootstrap 3 and above

 

For Bootstrap 4

Bootstrap 4 now uses flexbox by default, so you get access to its magical powers straight out of the box. Check out the auto layout columns that dynamically adjust width depending on how many columns are nested.

Here's an example:

<div class="row">
   <div class="col">
      1 of 5
   </div>
   <div class="col">
      2 of 5
   </div>
   <div class="col">
      3 of 5
   </div>
   <div class="col">
      4 of 5
   </div>
   <div class="col">
      5 of 5
   </div>
</div>

WORKING DEMO

 

posted @ 2020-12-30 11:27  ChuckLu  阅读(79)  评论(0编辑  收藏  举报