scrimba
Frontend Career Path
Web dev basics
Build a Birthday GIFt Site
Add the hover effect
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Add the hover effect
Expand for more info
styles.css
run
preview
console
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 {
margin: 0 auto;
width: 400px;
height: 400px;
border: 6px solid white;
border-radius: 10px;
background-image: url("images/gift-cover.jpg");
background-size: cover;
}

/*
Challenge:
Swap the gift paper image out with
the happy.gif when you hover over it!
*/
Console
/index.html
-2:05