CSS Radio Button

Size
1,946 Kb
Views
32,384

How do I make an css radio button?

What is a css radio button? How do you make a css radio button? This script and codes were developed by MoyArt Maximus on 25 July 2022, Monday.

CSS Radio Button Previews

CSS Radio Button - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Radio Button</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="checkCuestionario"> <div class="respuestaCuestionario toggle-container"> <div class="relative"> <input id="CancerNo" class="toggle toggle-left" name="Cancer" value="no" type="radio" data-parsley-error-message="Por favor selecciona una opción" data-parsley-required> <label for="CancerNo" class="btn">No</label> </div> <div class="relative"> <input id="CancerSi" class="toggle toggle-right" name="Cancer" value="si" type="radio" data-parsley-error-message="Por favor selecciona una opción" data-parsley-required> <label for="CancerSi" class="btn">Si</label> </div> </div> </div>
</body>
</html>

CSS Radio Button - Script Codes CSS Codes

.relative{ position: relative; display: inline-block; margin-right: 25px;
}
@media screen and (min-width: 771px){
input[type=radio].toggle{ opacity: 0; position: absolute; pointer-events: none; width: 0; z-index: -1; }
.checkCuestionario + label{ color: gray; padding-left:0; display: inline; font: normal normal 15px/15px "Stag Sans", Tahoma, arial, sans-serif; }
input[type=radio].toggle + label:before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; position: absolute; left: 25px; bottom: 0px; background-color: transparent; border-radius: 12px; border: 1px solid #006EC1; }
input[type=radio].toggle:focus + label:before { border: 2px solid #006EC1; }
input[type=radio].toggle:checked + label:before { box-shadow: 0px 0px 0px 3px white inset; background-color: #006EC1; }
}
CSS Radio Button - Script Codes
CSS Radio Button - Script Codes
Home Page Home
Developer MoyArt Maximus
Username MoyArt
Uploaded July 25, 2022
Rating 3
Size 1,946 Kb
Views 32,384
Do you need developer help for CSS Radio Button?

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!

MoyArt Maximus (MoyArt) Script Codes
Create amazing sales emails 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!