I've dedicated an excessive amount of time to this task, exhaustively going through over 30 solutions on Stack Overflow before finally resorting to posting my own question. I am well aware that it is a highly common problem and I apologize for adding another post about it, but I simply cannot seem to make it work.
Here's the code snippet I'm struggling with:
<div style="width: 100%">
<div style="width: 70%; float: left;">
<mat-form-field appearance="standard" >
<mat-label>Filter Table Data</mat-label>
<input matInput [(ngModel)]="filter" (keyup)="applyFilter($event)">
</mat-form-field>
</div>
<div style="width: 30%; float: right;">
<button
stye="display: flex; flex-direction: column; align-items: center;"
mat-raised-button (click)="clearFilter(1)" >
Clear Filter
</button>
</div>
</div>
This is the current display on my website:
https://i.sstatic.net/RMCPo.png
Any suggestions on achieving vertical alignment?
Desired outcome: I need the button ("Clear Filter") as shown in the image to be vertically aligned, instead of being displayed at the top of the div.