* I'm struggling to center a <mat-card>
on the screen, specifically within the toggle-device-toolbar
. It's intended for mobile phones and I could use some guidance. I'm working with angular-material
and ng-bootstrap
*
Here is the code snippet for the <mat-card>
<div class="container ">
<mat-card>
<mat-radio-group aria-label="Select an option" [(ngModel)]="radio_btn">
<mat-radio-button [value]="true" >Admin</mat-radio-button>
<mat-radio-button [value]="false">User</mat-radio-button>
</mat-radio-group>
<div class="row justify-content-center" *ngIf="radio_btn==true;else form2">
<form class="example-form " [formGroup]="loginForm" (ngSubmit)="send()">
<mat-form-field class="example-full-width">
<input matInput formControlName="Identifier" placeholder="User" >
</mat-form-field><br>
<div *ngIf="loginForm.get('Identifier').hasError('Identifier') && loginForm.get('Identifier').touched">Introduce an email</div><br>
<mat-form-field class="example-full-width">
<input matInput formControlName="Password" placeholder="Password" type="password">
</mat-form-field><br>
<div *ngIf="loginForm.get('Password').hasError('Password') && loginForm.get('Password').touched">Introduce the correctly password</div><br>
<button mat-raised-button [disabled]="loginForm.invalid" class="colour_button " type="submit">Login 1</button>
</form>
</div>
</mat-card>
</div>
Here is the current appearance: