How to center vertically with Angular Flex Layout?

后端 未结 3 576
迷失自我
迷失自我 2020-12-30 02:35

I\'ve created a simple login component and I\'d like to vertically center, but I\'m not sure how to achieve this using the Angular Flex Layout library.

app.component

3条回答
  •  长发绾君心
    2020-12-30 03:03

    If the parent element has a known height, all you need is fxLayoutAlign="center center":

    MAYABI PORTFOLIO MULTIPURPOSE THEME

    lorem ipsum dolor sit amt, consectet adop adipisicing elit, sed do eiusmod teporara incididunt ugt labore.

    hello
    .intro-section { height: 500px; }

提交回复
热议问题