Toggle Buttons

Size
2,666 Kb
Views
26,312

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 Previews

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;
}
Toggle Buttons - Script Codes
Toggle Buttons - Script Codes
Home Page Home
Developer Simeon Simeonoff
Username simeonoff
Uploaded September 17, 2022
Rating 3
Size 2,666 Kb
Views 26,312
Do you need developer help for Toggle Buttons?

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!

Simeon Simeonoff (simeonoff) Script Codes
Create amazing art & images with AI!

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!