scrimba
UI Design
Forms
Challenge 4: Checkboxes
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

Challenge 4: Checkboxes
AboutCommentsNotes
Challenge 4: Checkboxes
Expand for more info
index.css
run
preview
console
@import url('https://fonts.googleapis.com/css?family=Nunito:400,700&display=swap');

* {
box-sizing: border-box;
}

html, body {
margin: 0;
padding: 0;
}

body {
font-family: 'Nunito', sans-serif;
background: #F0F0F0;
color: #1A004E;
}

.wrapper {
padding: .5em;
text-align: center;
}

ul {
list-style: none;
padding: 0 1em;
display: flex;
width: 300px;
margin: 0 auto;
justify-content: space-between;
}

ul li a {
text-decoration: none;
}

.circle {
width: 3em;
height: 3em;
background: white;
border-radius: 50%;
margin: 0 auto .5em;
display: grid;
place-content: center;
color: #797979;
font-weight: bold;
}

.current .circle {
background: #1A004E;
color: white;
}

span {
color: #797979;
font-weight: bold;
}

.current span {
color: #1A004E;
}

main {
background: white;
padding: 1em;
text-align: left;
margin-top: 2em;
margin-bottom: 2em;
}

h2 {
font-size: 1.3em;
position: relative;
margin-bottom: 1.5em;
}

h2:before {
content: '';
position: absolute;
height: 5px;
width: 30px;
background: #8040FF;
left: 0;
top: -7px;
border-radius: 1em;
}

label {
display: block;
font-weight: bold;
margin-top: 1.5em;
margin-bottom: .5em;
}

input[type=text], select, textarea {
width: 100%;
padding: 1em;
border-radius: .2em;
border: 1px solid #ACACAC;
color: #1B1820;
}

input[type=text]:focus, textarea:focus {
outline: 3px solid #ACACAC;
}

.left-col .error-field {
border: 3px solid #FFB3B3;
}

.error {
background: #FFB3B3;
display: inline-block;
padding: .3em .5em;
font-size: .85em;
font-weight: bold;
margin-top: -.1em;
}

.cta {
display: block;
width: 100%;
padding: 1em;
text-align: center;
text-decoration: none;
color: white;
background: #8040FF;
margin-top: 1.5em;
font-weight: bold;
font-size: 1.2em;
border-radius: .2em;
}

.right-col {
margin-top: 2em;
line-height: 1.5em;
color: #1B1820;
}

@media(min-width: 650px) {
main {
display: flex;
padding: 2em;
}
.left-col {
flex: 0 0 65%;
margin-right: 2em;
}
.right-col {
margin: 0;
}
.cta {
display: inline-block;
width: unset;
float: right;
padding: 1em 4em;
}
}

@media(min-width: 950px) {
main {
padding: 2em;
width: 900px;
margin: 2em auto;
}
h2 {
font-size: 1.7em;
}
}
Console
/step2.html
-9:12