Toggle Buttons
How do I make an toggle buttons?
What is a toggle buttons? How do you make a toggle buttons? This script and codes were developed by Simeon Simeonoff on 17 September 2022, Saturday.
Toggle Buttons - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Toggle Buttons</title> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <section class="container"> <article> <h6 class="title">Exclusive selection</h6> <div class="toggle-buttons--active"> <span class="toggle-buttons__item--selected"> <i class="material-icons">format_align_left</i> </span> <span class="toggle-buttons__item"> <i class="material-icons">format_align_center</i> </span> <span class="toggle-buttons__item"> <i class="material-icons">format_align_right</i> </span> <span class="toggle-buttons__item"> <i class="material-icons">format_align_justify</i> </span> </div> </article>
</section>
<section class="container"> <article> <h6 class="title">Mutliple selection</h6> <div class="toggle-buttons--active"> <span class="toggle-buttons__item"> <i class="material-icons">format_align_left</i> </span> <span class="toggle-buttons__item"> <i class="material-icons">format_align_center</i> </span> <span class="toggle-buttons__item--selected"> <i class="material-icons">format_align_right</i> </span> <span class="toggle-buttons__item--selected"> <i class="material-icons">format_align_justify</i> </span> </div> </article>
</section>
</body>
</html>
Toggle Buttons - Script Codes CSS Codes
html,
body { box-sizing: border-box; font-size: 16px; height: 100%;
}
body { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: column nowrap; flex-flow: column nowrap; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; font-family: 'Arial', sans-serif; color: gray;
}
.toggle-buttons, .toggle-buttons--active { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: row nowrap; flex-flow: row nowrap; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; border-radius: 2px;
}
.toggle-buttons--active { box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
}
.toggle-buttons__item, .toggle-buttons__item--selected { padding: 6px 16px; color: rgba(0, 0, 0, 0.24); height: 24px; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-transition: background .5s ease; transition: background .5s ease;
}
.toggle-buttons__item:hover, .toggle-buttons__item--selected:hover { background: rgba(0, 0, 0, 0.12);
}
.toggle-buttons__item--selected { color: rgba(0, 0, 0, 0.54); background: #C8C8C8; border-left: 1px solid; border-right: 1px solid; border-color: #bebebe;
}
.container { padding: 16px;
}
.title { font-size: .875em; padding: 8px 0;
}
Developer | Simeon Simeonoff |
Username | simeonoff |
Uploaded | September 17, 2022 |
Rating | 3 |
Size | 2,666 Kb |
Views | 26,312 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Avatar | 2,309 Kb |
Flexbox SASS Grid | 4,135 Kb |
Material Switches | 2,691 Kb |
Material Radio Buttons | 2,938 Kb |
Material Checkboxes | 3,262 Kb |
Material Inputs | 3,313 Kb |
Bouncy Switch | 2,830 Kb |
Grid Layout | 2,845 Kb |
Material Design Calendar | 4,021 Kb |
Notification Animation | 2,603 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Wikipedia API | Coderpilot | 2,802 Kb |
Bootstrap 4 Gridsystem Demo | Rivella50 | 1,535 Kb |
Pure CSS Tooltip | APinix | 2,815 Kb |
Tumblr API | Juanv911 | 2,436 Kb |
404 Error Page | WebSonick | 3,203 Kb |
Starting out with Ember.JS | Cfleschhut | 4,808 Kb |
To Do List with Delete | Mattlbrody | 2,068 Kb |
Count checked checkboxes with jQuery | Mestika | 2,343 Kb |
Cofee and sugar | Tripack | 2,094 Kb |
Degree Picker | Idered | 4,307 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!