Cross browser radio buttons
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 - 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
Developer | Revolution Graphics |
Username | rgfx |
Uploaded | October 01, 2022 |
Rating | 3 |
Size | 2,474 Kb |
Views | 20,240 |
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 |
A Pen by Revolution Graphics | 2,991 Kb |
SVG Background Repeat - Works IN IE | 2,957 Kb |
Signature pad | 3,084 Kb |
Fancy Select Box | 5,516 Kb |
Animating TImescale Gsap tweenmax | 2,149 Kb |
Background image mouse scroll | 2,287 Kb |
Simple Horizontal Stacked Bar | 2,000 Kb |
Fullsized Background Image slideshow | 1,914 Kb |
SVG as a submit button | 2,128 Kb |
Simple Responsive Popup | 2,906 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 |
A vuejs widget | Chrgl86 | 2,869 Kb |
Scrolling Horizontal Isotope | Bramus | 2,017 Kb |
Table border-collapse property | Maxds | 1,672 Kb |
Rain Landing in a Pond | Edball | 3,009 Kb |
Hamburger Menu Animation | Salmanraza | 2,580 Kb |
Text Looping Transition | Agelber | 5,619 Kb |
Use the Twitchtv JSON API | Roksanaop | 3,561 Kb |
Slider for stackoverflow | KKOKU | 3,222 Kb |
Rainbow Drops | Csbarnes | 2,365 Kb |
Sequence.js - Sliding Horizontal Parallax | Maheshc | 4,537 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!