scrimba
Responsive Design
Think responsively
ems and rems - an example
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

ems and rems - an example
AboutCommentsNotes
ems and rems - an example
Expand for more info
css
style.css
run
preview
console
.card {
background: #000;
color: white;
width: 560px;
margin: 0 auto;
padding: 45px;
}

h1, p {
margin-top: 0;
}

h1 {
font-size: 24px;
}

p {
font-size: 18px;
}

a {
color: black;
}

.button {
display: inline-block;
background: #FFE600;
color: black;
padding: 15px 30px;
text-align: center;
text-decoration: none;
margin-bottom: 50px;
}

.button:hover {
background: orange;
}

.accent-color {
color: #FFE600;
}

.links {
margin-top: 0;
margin-bottom: 0;
}
Console
index.html
-7:47