Trying to position a vertical icon on a profile photo card inside a div to be in the center of a white box but it's not working. Using
style="width: 300px; height: 300px;
for the div square centers it horizontally, but not vertically. Can someone help me figure out what I'm doing wrong?
Is there a way to resize Bootstrap icons other than using display-1?
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a0c2cfcfd4d3d4d2c1d0e0948e908e90">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9af8f5f5eee9eee8fbeab7f3f9f5f4e9daabb4a2b4ab">[email protected]</a>/font/bootstrap-icons.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="eb9b849b9b8e99c58198abdac5dad9c5d2">[email protected]</a>/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ff9d90908b8c8b8d9e8fbfcbd1cfd1cf">[email protected]</a>/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<div class="container-sm offset-md">
<h1 class="p-4 m-4">Profile Settings</h1>
<div class="row">
<div class="col">
<div class="card p-4 m-4">
Personal Information
<input type="text" name="name" class="form-control" placeholder="First Name">
<input type="text" name="surname" class="form-control" placeholder="Last Name">
<input type="email" name="email" class="form-control" placeholder="Email">
<input type="date" name="name" class="form-control">
</div>
</div>
<div class="col-4">
<div class="card p-4 m-4 bg-light">
Profile Picture
<div class="square text-center border display-1 m-3 bg-white mx-auto">
<i class="bi bi-person-fill align-middle justify-content-center text-secondary"></i>
</div>
<input type="file" id="customFile" name="file" hidden="">
<div class="text-center">
<button class="btn btn-success" for="customFile">Upload</button>
<button type="button" class="btn btn-danger">Delete</button>
<p class="text-muted mt-3 mb-0">Note: Minimum size 300px x 300px</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="card p-4 m-4">
Change Password
</div>
</div>
<div class="col">
<div class="card p-4 m-4">
Show/Hide Details
</div>
</div>
</div>
</div>