scrimba
HTML & CSS
Build a Birthday GIFt Site
Replace the img with a div
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

Replace the img with a div
AboutCommentsNotes
Replace the img with a div
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 {
width: 400px;
border: 6px solid white;
border-radius: 10px;
}

/*
Challenge:
"Fix" the "gift-img" <div> so that it looks
like the provided design again.

It needs a height (should be a square), a
background image, and to be centered again.
*/


Console
/index.html
-4:15