I’m making a Netflix Clone just like a personal project. In the Netflix Profiles section on hover, the border around the image and the user name are both highlighted. When I test my code, on hover, the border and text change differently. I tried many methods for a little while without success. I know I’m missing something simple, and maybe thinking too much but I’m not sure how to approach it even if I’m creating a JS function maybe, or inside CSS. (I’m having trouble adding JS to my projects cause I built this clone!)?

* Tips or warnings can be daunting while I’m still trying to troubleshoot it

body, html {
    height: 100%;
    margin: 0px;
    margin-top: -11px;
    margin-left: 22.5px;
    padding: 0px;
    color: white;
    font-family: 'Roboto', sans-serif;
    background-color: rgb(17, 17, 17);
}

.container {
    text-align: center;
    position: relative;
    top: 10%;
}

/* 
----------------
PROFILES SECTION
----------------
*/

.profiles {
    margin: 20px;
    padding: 20px;
    display: flex;
    justify-content: center;
}


.prfImg {
    margin: -6px;
    padding: 12px;
}

.prfImg > img {
    margin: 2px;
    padding: 2px;
    border: 0.5px solid rgba(255, 255, 255, 0.061);
    border-radius: 3px;
}

.prfImg > img:hover {
    color: rgba(255, 255, 255, 0.787);
    border: 3px solid rgba(255, 255, 255, 0.787);
    border-radius: 3px;
}

#user {
    font-size: 25px;
    color: grey;
}

/* 
----------------
BUTTON
----------------
*/

.btn {
    margin: 30px;
    padding: 30px;
    text-align: center;
}

button {
    margin-top: 30px;
    font-size: 22px; 
    color: grey;
    padding: 10px;
    background-color: transparent;
    border: 1.5px solid grey;
}

button:hover {
    color: rgba(255, 255, 255, 0.863);
    border: 1.5px solid rgba(255, 255, 255, 0.863);
}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://stackoverflow.com/questions/69564304/profiles.css">
    <!-- google font -->
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
    <title>NETFLIX - Profiles</title>
</head>

<body>
    <header>
        <img src="Img_d.profiles/netflix_logo.png" alt="netflix logo TM" width="99.2px">
    </header>

    <div class="container">
        <div class="header-text">
            <h1 style="font-size: 50px;">Who's watching?</h1>
        </div>
        <div class="profiles">
            <div class="prfImg">
                <img src="Img_d.profiles/profile_one.png" alt="Profile One" width="75%" label="hello">
                <p class="prfImg" id="user">A name</p>
            </div>
            <div class="prfImg">
                <img src="Img_d.profiles/profile_two.png" alt="Profile Two" width="75%">
                <p class="prfImg" id="user">A name</p>
            </div>
            <div class="prfImg">
                <img src="Img_d.profiles/profile_three.png" alt="Profile Three" width="75%">
                <p class="prfImg" id="user">A name</p>
            </div>
            <div class="prfImg">
                <img src="Img_d.profiles/profile_four.png" alt="Profile Foud" width="75%">
                <p class="prfImg" id="user">A name</p>
            </div>
        </div>
        <!-- button class -->
    </div>

    <div class="btn">
        <button>Manage Profiles</button>
    </div>

</body>

</html>

enter the image description here of myself!*

Zi Panid a new provider on this site. Be careful in asking for clarification, commenting, and responding. Check out our Code of Conduct.