In my HTML document for an Angular application using BootStrap4, I am trying to right-align the SAVE button underneath the second form in the same row. I have divided the div container into two forms using col-6 classes for each, but despite trying various Bootstrap classes and CSS align properties, I am still facing alignment issues.
<div class="container-fluid bgstyle">
<div class="container pt-2 pb-2 cntnr">
<div class="row">
<div class="align-center col-6">
<form [formGroup]="teacherform" class="pt-2 pb-2">
<div class="form-group">
<p class="input-group">
<i class="fa fa-camera fa-2x user-icon fa-fw" aria-hidden="true"></i>
<label for="file" class="col-sm-10 form-control">Choose profile picture</label>
<input type="file" name="pic" accept="image/* " (change)="selectedFile($event)"
class="border-left-0 pl-2 pr-2 form-control mr-2px" formControlName="pic">
</p>
</div>
<!-- More form elements here -->
</form>
</div>
<div class="col-6">
<form [formGroup]="teacherform" class="pt-2 pb-2">
<!-- Form elements for the second form here -->
<div class=" input-group text-white text-right">
<button type="submit" class="btn btn-primary" style="float:right">Save Records </button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- end snippet -->
how can i align "save button" to the right side of the form
Here is my component.html file structure
> Updated
<div class="container-fluid bgstyle">
<div class="container pt-2 pb-2 cntnr">
<div class="row">
<div class="align-center col-6">
<form [formGroup]="teacherform" class="pt-2 pb-2 ">
<div class="form-group">
<p class="input-group">
<i class="fa fa-camera fa-2x user-icon fa-fw" aria-hidden="true"></i>
<label for="file" class="col-sm-10 form-control">Choose profile picture</label>
<input type="file" name="pic" accept="image/* " (change)="selectedFile($event)"
class="border-left-0 pl-2 pr-2 form-control mr-2px" formControlName="pic">
</p>
</div>
<!-- More form elements here -->
</form>
</div>
<div class="col-6">
<form [formGroup]="teacherform" class="pt-2 pb-2 ">
<!-- Form elements for the second form here -->
<div class=" input-group text-white text-right">
<button type="submit" class="btn btn-primary " style="float:right">Save Records </button>
</div>
</form>
</div>
</div>
</div>
</div>
I'm struggling with aligning the SAVE button to the right side under the second form. Any suggestions on how to achieve this?