I am using a div in my html but when I specify the height to 100%, it doesn't take the full height of its parent container. The code looks like this.
<main>
        <h1 class="first-text"></h1>
        <h2 class="first-text"></h2>
        <div class="pictures">
          <div class="arrows">
            <i class="fas fa-arrow-right arrow-right"></i>
            <i class="fas fa-arrow-left arrow-left"></i>
          </div>
          <img src="" width="400" alt="" />
          <img src="" width="400" alt="" />
        </div>
</main>
The problem is that the arrows div is not getting 100% of the height of the pictures div, here is the css.
.pictures{
    width: fit-content; 
    margin: 0px; 
    padding: 0px;
    margin: auto;
    animation: changeImage 1s;
}
.arrows{
    background: blue;
    display: flex;
    height: 100%;
    align-items: center;
    width: 100%;
    position: relative;
    color: white;
}
 
    