Position fixed css adding in body tag in angular material
Have you inspected it in your browser? You can see the md styles overriding it probably. Add a class to it and override style, with important if needed
.md-select.fixedTop{ top: 0px !important;}
I think you check it.md-select.fixedTop{ top: 0px !important; }