I just can't seem to center items horizontally. I have a scrollable grid of rectangular iframes with this structure:
<virtual-scroller><div *ngFor style="display: inline-block"><iframe></iframe></div</virtual-scroller>
`
What should be the best practice to make sure the items are centered horizontally in the scrollable content area?
I've used display: inline-block on the ngfor div, because otherwise all items are placed vertically and just 1 column is used.
I just can't seem to center items horizontally. I have a scrollable grid of rectangular iframes with this structure:
<virtual-scroller>
<div *ngFor style="display: inline-block">
<iframe>
</iframe>
</div
</virtual-scroller>
` What should be the best practice to make sure the items are centered horizontally in the scrollable content area? I've used display: inline-block on the ngfor div, because otherwise all items are placed vertically and just 1 column is used.