Cross browser radio buttons

Size
2,474 Kb
Views
20,240

How do I make an cross browser radio buttons?

What is a cross browser radio buttons? How do you make a cross browser radio buttons? This script and codes were developed by Revolution Graphics on 01 October 2022, Saturday.

Cross browser radio buttons Previews

Cross browser radio buttons - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Cross browser radio buttons</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div> <input type="radio" checked="" value="one" id="r12" name="item2"> <label class="radio circle" for="r12"> <span class="big"> <span class="small"></span> </span>one </label> <input type="radio" checked="" value="two" id="r22" name="item2"> <label class="radio circle" for="r22"> <span class="big"> <span class="small"></span> </span>two </label> <input type="radio" checked="" value="two" id="r32" name="item2"> <label class="radio circle" for="r32"> <span class="big"> <span class="small"></span> </span>three </label>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Cross browser radio buttons - Script Codes CSS Codes

div { padding: 20px 0;
}
input { display: none;
}
label { display: inline-block; margin-right: 10px;
}
span.big { border-radius: 50% 50% 50% 50%; display: inline-block; height: 12px; margin-bottom: -12px; margin-right: 9px; padding: 50px; position: relative; top: -3px; width: 12px;
}
span.small { border-radius: 50% 50% 50% 50%; display: block; height: 100%; transition: background 0.4s ease 0s; width: 100%;
}
input[type="radio"]:checked + label { color: #269b0a;
}
input[type="radio"]:checked + label span.small { background-color: rgba(255, 64, 64, 0.8); opacity: 1;
}
.circle .big { cursor: pointer; height: 16px; width: 16px; padding: 5px; border: 2px solid #269b0a;
}
input[type="radio"]:checked + label.circle span.small { background-color: #269b0a;
}

Cross browser radio buttons - Script Codes JS Codes

//thanks https://codepen.io/isyara/pen/eAEaL
Cross browser radio buttons - Script Codes
Cross browser radio buttons - Script Codes
Home Page Home
Developer Revolution Graphics
Username rgfx
Uploaded October 01, 2022
Rating 3
Size 2,474 Kb
Views 20,240
Do you need developer help for Cross browser radio 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!

Revolution Graphics (rgfx) Script Codes
Create amazing captions 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!