Bootstrap Center align a div horizontally

前端 未结 3 1752
猫巷女王i
猫巷女王i 2021-01-11 18:04

I have tried simple login page for a sample. But am unable to align the fields to center. h:commandButton is aligned to center. but rest of the fields are does

3条回答
  •  青春惊慌失措
    2021-01-11 18:26

    To center a block level element horizontally in bootstrap use Use center-block class.

    For example:

    ...

提交回复
热议问题