I have experience with Bootstrap and AngularJS Material, but I am currently learning Angular Material. However, I am struggling to find options for CSS positioning like left (start), center, or right (end) for creating column layouts. One specific challenge is placing "Instructions" on the left and a "close" icon on the right within a single line.
https://i.sstatic.net/XztmC.png
In AngularJS Material, I typically use layout-align
:
<div layout="row">
<span layout-align="start">
<p class="md-title">Instructions</p>
</span>
<span flex></span>
<span layout-align="end">
<md-button class="md-icon-button" ng-click="toggleInstructions()">
<md-icon md-svg-src="media/icons/ic_close_24px.svg" aria-label="Close dialog"></md-icon>
</md-button>
</span>
</div>
However, when trying to achieve the same layout using Angular Material, I couldn't find any specific features for CSS positioning. Using plain CSS resulted in the elements being displayed on two separate lines:
https://i.sstatic.net/YxDQG.png
Here's the Angular HTML code with plain CSS:
<mat-card class="instructions" *ngIf="showInstructions">
<mat-card-title>
<span style="display: flex; justify-content: flex-start;">Instructions</span>
<i class="material-icons" style="display: flex; justify-content: flex-end;">close</i>
</mat-card-title>
</mat-card>
I couldn't find any information in the Angular Material guide regarding CSS positioning. Does Angular Material not offer support for CSS positioning anymore?