How to position elements to the right in md-toolbar?

后端 未结 2 1011
慢半拍i
慢半拍i 2021-01-31 02:41

I am using FAB speed dial within a toolbar. However I am unable to have it floating to the right of the toolbar. I\'ve tried float: right with no luck. Also, tried

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 03:06

    Or you can use a class for that:

    .fill-space {
      // This fills the remaining space, by using flexbox.
      // Every toolbar row uses a flexbox row layout.
      flex: 1 1 auto;
    }
    
      Application Title
    
      
      
    
      Right Aligned Text
    

    This solution is also taken from a spec.

提交回复
热议问题