I am trying to get rid of the white spaces around the orange background color (top, right, and left). I was thinking of using position property to extend the height and width, but not sure if that's a good idea. Sorry, I am kind of new to this.
html {
box-sizing: border-box;
}
.profile-image {
height: 8rem;
width: 8rem;
border-radius: 20rem;
}
.profile {
text-align: center;
padding-top: 2rem;
}
.background {
background-color: orange;
}
<div class="background">
<div class="profile">
<figure>
<img class="profile-image" src="https://gamerheadquarters.com/hub/avatar/fallout76tshirt.jpg" alt="profile photo">
<h1 class="profile-name">John Johnson</h1>
</figure>
</div>
</div>