scrimba
Movie Search App
Style the Movie Cards
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
Style the Movie Cards
Expand for more info
style.css
run
preview
console
html {
font-size: 10px;
}

* {
box-sizing: border-box;
}

body {
margin: 0;
padding: 0;
background-color: rgb(244,244,244);
color: #333;
}

p {
font-size: 1.6rem;
}

small {
font-size: 1.2rem;
}

.container {
margin: 0 auto;
max-width:1000px;
padding: 40px;
}

.title {
font-size: 4.4rem;
text-align: center
}

.form {
display:grid;
}

.label {
font-size: 1.2rem;
margin-bottom: 0.2rem;
text-transform: uppercase;
}

.input {
font-size: 1.6rem;
padding: 0.5rem 2rem;
line-height: 2.8rem;
border-radius: 20px;
border: 1px solid #ddd;
margin-bottom: 1rem;
}

.button {
background-color: rgba(0,0,0,0.75);
color: white;
padding: 1rem 2rem;
border: 1px solid rgba(0,0,0,0.75);
border-radius: 20px;
font-size: 1.4rem;
cursor: pointer;
transition: background-color 250ms;
}

.button:hover {
background-color: rgba(0,0,0,0.85);
}

@media (min-width:786px){
.form {
grid-template-columns: auto 1fr auto;
grid-gap: 1rem;
align-items: center;
}

.input {
margin-bottom: 0;
}
}
Console
/index.html?query=
-2:52