Search
 
SCRIPT & CODE EXAMPLE
 

HTML

bootstrap flex class

.d-flex
.flex-row
.flex-row-reverse
.flex-column
.flex-column-reverse
.justify-content-start
.justify-content-end
.justify-content-center
.justify-content-between
.justify-content-around
.align-items-start
.align-items-end
.align-items-center
.align-items-baseline
.align-items-stretch
Comment

align-self: flex-end; bootsrap

align-self-end
Comment

align-self: flex-start; bootstrap

<div class="align-self-start">Aligned flex item</div>

<!-- responsive variations -->
<div class="align-self-sm-start">Aligned flex item</div>
<div class="align-self-md-start">Aligned flex item</div>
<div class="align-self-lg-start">Aligned flex item</div>
<div class="align-self-xl-start">Aligned flex item</div>Copy code
Comment

flex wrap bootstrap

<div class="d-flex flex-wrap">...</div>
Comment

bootstrap flex grid

<div class="d-flex justify-content-center"></div>
Comment

Bootstrap 4 Flex

<div class="d-flex p-3 bg-secondary text-white">
  <div class="p-2 bg-info">Flex item 1</div>
  <div class="p-2 bg-warning">Flex item 2</div>
  <div class="p-2 bg-primary">Flex item 3</div>
</div>
Comment

Bootstrap flex box

<div class="d-flex">
  <div class="p-2">Flex item</div>
  <div class="p-2">Flex item</div>
  <div class="p-2">Flex item</div>
</div>

<div class="d-flex">
  <div class="mr-auto p-2">Flex item</div>
  <div class="p-2">Flex item</div>
  <div class="p-2">Flex item</div>
</div>

<div class="d-flex">
  <div class="p-2">Flex item</div>
  <div class="p-2">Flex item</div>
  <div class="ml-auto p-2">Flex item</div>
</div>
Comment

bootstrap display flex

<div class="d-flex">I'm a flexbox container!</div>
Comment

PREVIOUS NEXT
Code Example
Html :: link to call a phone number 
Html :: sample html file 
Html :: favicon for html page 
Html :: google web fonts open sans 
Html :: html get redirect to another page on load 
Html :: font awesome cdn link 
Html :: how to create a page break html 
Html :: tag input type float number html 
Html :: iframe pdf html5 
Html :: language list select html 
Html :: js making input non typeable 
Html :: target blank rel 
Html :: linear gradient with image 
Html :: unmute html5 video jquery 
Html :: min length input html 
Html :: select dropdown default value 
Html :: sms link 
Html :: How to add images in select list 
Html :: middel click vuejs 
Html :: difference between name and id html 
Html :: angular check active route 
Html :: how to get value of textbox in javascript from html 
Html :: html form button 
Html :: emmet unordered list 
Html :: html dash code 
Html :: html table cell border not showing 
Html :: css keep hyphenated words together 
Html :: form with no action 
Html :: html video controls 
Html :: html link favicon 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =