1 | initial version |
To align a mat cross button to the right-most position within a div in Angular, you can use the CSS property "justify-content: flex-end" on the parent div. Here is an example:
HTML:
<div class="parent">
<button mat-icon-button>
<mat-icon>close</mat-icon>
</button>
</div>
CSS:
.parent {
display: flex;
justify-content: flex-end;
}
This will align the mat cross button to the right-most position within the parent div.