Bootstrap 4 Center Vertical and Horizontal Alignment

前端 未结 11 2858
借酒劲吻你
借酒劲吻你 2020-11-21 04:37

I have a page where only form exists and I want form to be placed in the center of the screen.

11条回答
  •  后悔当初
    2020-11-21 05:14

    I ended up here because I was having an issue with Bootstrap 4 grid system and an Angular *ngFor loop. I fixed it by applying a col justify-content-center class to the div implementing the ngFor:

    which gives the result:

提交回复
热议问题