Can you assist me in resolving an issue related to the width of the second image? I have included a link for your reference if you wish to examine the problem.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Happy+Monkey&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="header">
<h1>It's Violeta's birthday today 🎉</h1>
<img id="bff-img" src="Violeta.jpg">
<h2 id="bday-age">She is turning 38 years old</h2>
<h4 id="bday-date">Date: 05.07.2022</h4>
</div>
<div class="gift-section">
<h2 class="gift-title">Celebrating the joy on this special day 🥳</h2>
<h3 class="gift-hint">(Move your mouse over the gift)</h3>
<div class="gift-img" id="gift-img-happy"></div>
</div>
<div class="gift-section">
<h2 class="gift-title">A toast to your friendship 🥂</h2>
<div class="gift-img" id="gift-img-cheers"></div>
</div>
<div class="gift-section">
<h2 class="gift-title">Witness the magic as you walk in 😍</h2>
<div class="gift-img" id="gift-img-hot"></div>
</div>
<footer>Copyright © 2022 </footer>
</body>
</html>
Additionally, here is the corresponding CSS:
body {
text-align: center;
font-family: 'Happy Monkey', cursive;
background: #a2d2ff;
color: #ffffff;
}
h1, h2, h3, h4, p {
text-shadow: 0 0 1px black;
}
#bff-img {
width: 150px;
border-radius: 50%;
border: 6px solid #EFB0C9;
margin-bottom: 10px;
}
#bday-age {
background: #EFB0C9;
padding: 5px 10px;
border-radius: 5px;
margin: 5px 0 10px 0;
}
#bday-date {
margin: 0;
background: #EFB0C9;
padding: 5px 10px;
border-radius: 5px;
}
#header {
display: flex;
flex-direction: column;
align-items: center;
}
.gift-section {
margin-top: 50px;
}
.gift-title {
margin-bottom: 10px;
}
.gift-hint {
margin-top: 0;
}
#gift-img-cheers {
height: 200px;
}
.gift-img {
margin: 20px auto;
max-width: 400px;
height: 400px;
border: 6px solid white;
border-radius: 10px;
background-image: url("9k=(1).jpg");
background-size: cover;
}
#gift-img-happy:hover {
background-image: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQTMuMQnX7isJCCrCZbeh_JBp-ACk2KvmB1H7NBLp0V_Ty2988B&s");
}
#gift-img-hot:hover {
background-image: url("9k=.jpg");
}
#gift-img-cheers:hover {
background-image: url("birthday-beerthday.gif");
height: 400px;
width: 400px;
}
In case you'd like to view my replit version, here is the link:
Feel free to provide feedback on the code and suggest improvements if needed.