Justify items of list at center

Hi All. I want to align the horizontal list created by ‘ListComponent’ at the center of the page based on the varying number of items in the list (Like justify-content: center; in CSS).
Could anyone please help me with this?

Hi @RamyaR
You can use Flex in Lightning as well
Refer this page LightningJS.io - Documentation

One note on this: while Flexbox in Lightning is very convenient, it might not always be the most performant solution.

When used extensively and in deeply nested situation, every animation might trigger a lot of recalculations, which may cause a performant hit. So please be mindful of this.

It might sometimes be better to calculate the position yourself and absolute position an element based on that.

Thanks for the reply.

Yeah got it. Thanks for the reply.