I am trying to design a team member section with 5 team members, with it being an odd number I can’t figure out the best way to align them centerally, I was wondering if a grid or flexbox is the best way to do it.
Does anybody have any ideas or examples how best to do this?
hi @Franciswebdev what research you have done so far as this is very simple task covered in many flex tutorials they are on internet.
The basic you should know that Flex and Grid works with free space both in their way. Flex should be used in one directional approach (width or height) while Grid works in two dimension (width and height)
If you would like to use flex you should use max width because when item warp on other “row” ti will take all possible space. max width prevent this.
EDIT: I have done for you simple example but I will recommend invest some of your time to learn at least some basics.