scrimba
JS color tool
Create Custom Toggle Button Styling
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

To see this lesson you need to be logged in. Joining Scrimba is free and gives you access to 20+ courses.Sign up
Create Custom Toggle Button Styling
AboutCommentsNotes
Create Custom Toggle Button Styling
Expand for more info
index.css
run
preview
console
* {
margin: 0;
padding: 0;
}

body {
font-family: 'Montserrat', sans-serif;
background-color: #3e4560;
color: white;
}

.container {
padding: 0 10px;
}

.title {
text-align: center;
margin: 20px;
color: #d6d5ac;
}

label {
display: block;
font-size: 20px;
margin-bottom: 5px;
}

input {
margin-bottom: 25px;
}

input[type="text"]{
padding: 5px 10px;
border-radius: 3px;
border: none;
}

.box {
height:100px;
width: 100%;
background-color: #c6d5ac;
margin-bottom: 25px;
}

/* display labels and toggle horizontally */
/* style the toggle button as well as the inner circle using explicit sizing */
/* choose fun colors */
/* define an unselected class that will de-emphasize the non-selected text */

































Console
/index.html
-5:07