Bootstrap 4 Center Vertical and Horizontal Alignment

前端 未结 11 2851
借酒劲吻你
借酒劲吻你 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:01

    From the doc (bootsrap 4):

    https://getbootstrap.com/docs/4.0/utilities/flex/#justify-content

    .justify-content-start
    .justify-content-end
    .justify-content-center
    .justify-content-between
    .justify-content-around
    .justify-content-sm-start
    .justify-content-sm-end
    .justify-content-sm-center
    .justify-content-sm-between
    .justify-content-sm-around
    .justify-content-md-start
    .justify-content-md-end
    .justify-content-md-center
    .justify-content-md-between
    .justify-content-md-around
    .justify-content-lg-start
    .justify-content-lg-end
    .justify-content-lg-center
    .justify-content-lg-between
    .justify-content-lg-around
    .justify-content-xl-start
    .justify-content-xl-end
    .justify-content-xl-center
    .justify-content-xl-between
    .justify-content-xl-around
    

提交回复
热议问题