Having trouble centering an avatar material UI component in my project. I've tried various methods such as text-align, justify-content, margin: auto but nothing seems to be working. Any assistance would be greatly appreciated.
/////profile.js///////
<div className="myProfile__outterContainer">
<div className="myProfile__innerContainer">
<div className="myProfile__header">
<h2>My Profile</h2>
<Avatar
alt={user.displayName}
src={user.photoURL}
className={classes.large}
/>
<h2>Welcome, {user.displayName}</h2>
</div>
</div>
</div>
////// profile .css below
profile.css
.myProfile__outerContainer {
display: flex;
justify-content: center;
margin-top: 5vh;
}
.myProfile__innerContainer {
position: relative;
width: 800px;
padding: 20px;
max-width: 85vw;
height: 75vh;
border-radius: 20px;
background-size: cover;
background-position: center;
box-shadow: 0px 18px 53px 0px rgba(0, 0, 0, 0.3);
}
.myProfile__header {
text-align: center;
justify-content: center;
}