Skip to main content

Command Palette

Search for a command to run...

How to align div in row using flexbox ?

Published
1 min read
S

I love learning about technology and sharing that with others

Use this CSS on the container which contains several div and we wants to align them in row

here i am aligning them in row and justify-content is center so first they will be centered

and then i will increase the width of each div inside the main container

.paymentMilestoneContainer {
  display: flex;
  flex-flow: row;
  justify-content: center;
}

More from this blog

H

hashcodehub

271 posts

Consistent, Passionate and Organized :)