Mat-Nav-List horizontal instead of vertical?

前端 未结 7 974
没有蜡笔的小新
没有蜡笔的小新 2021-02-07 23:18

How do I make the following horizontal instead of the (apparent default) of vertical? It is located within navigation.component.html within my Angular 5.2.7 application that wa

7条回答
  •  清酒与你
    2021-02-07 23:38

    Setting the container's display to flex and the it's flex-direction to row did the trick for me.

    
         Home
         About
    
    

    And the SCSS file:

    mat-nav-list.list-horizontal {
     display: flex;
     flex-direction: row;
    }
    

提交回复
热议问题