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

后端 未结 2 1012
慢半拍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:01

    THIS SOLUTION IS FOR ANGULAR MATERIAL v1.X, IF YOU NEED AN UNIVERSAL/ANGULAR MATERIAL v2 SOLUTION CHECK @experimenter ANSWER

    If you have a md-toolbar the easiest way to align right content is like this:

        
            

    You text

    your right content

    The flex property in span will cover the space between the contents. This is the official way in documentation.

    In you example, you just need:

    
        

    Org Chart

    Actions View Chart Add Chart Security Access Edit Chart

提交回复
热议问题