How to vertically center elements in Bulma?

后端 未结 5 1946
挽巷
挽巷 2020-12-30 23:24

How can I vertically center this

to that red colored section which is enclosing it?

And should I remove or ad

5条回答
  •  生来不讨喜
    2020-12-30 23:46

    Just add .is-flex class on the div.columns and both .is-centered and .is-vcentered will be available (Bulma v.0.7.1):

    https://bulma.io/documentation/modifiers/responsive-helpers/

    Here's my fully working example with a component centered in the screen:

    
    

提交回复
热议问题