scrimba
Frontend Career Path
Responsive design
Build a Product Splash Page
Aside: Control the size of elements with box-sizing
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

Aside: Control the size of elements with box-sizing
AboutCommentsNotes
Aside: Control the size of elements with box-sizing
Expand for more info
index.css
run
preview
console
body {
font-family: 'Karla', sans-serif;
text-align: center;
background-color: #c5d8ea;
margin: 0;
}

.promo-card {
width: 400px;
height: 400px;
padding: 25px;

background-color: white;
box-shadow: 0 2px 10px #8aa7c1;
border-radius: 8px;
margin: 2em auto 0;
}

h2 {
font-size: 2rem;
color: #9a3412;
margin: 0 0 1em;
}

h3 {
font-size: 1.25rem;
margin-bottom: 0.5em;
}

p {
margin: 0 0 1.5em;
}
Console
/index.html
-5:38