I was today years old when I learned these are called "radio buttons"
seen from Belgium
seen from Pakistan
seen from China
seen from United States
seen from China

seen from United States

seen from United States
seen from United States
seen from China

seen from China
seen from United States

seen from Australia
seen from United States
seen from China
seen from China
seen from United States

seen from Singapore

seen from United States

seen from Singapore
seen from Germany
I was today years old when I learned these are called "radio buttons"
What I've Been Reading: February 18, 2024
It’s been a while since we’ve checked in. Let’s talk about the state of the games industry and the state of the Web. Continue reading What I’ve Been Reading: February 18, 2024
View On WordPress
20+ Stylish Custom CSS Checkboxes and Radio Buttons
20+ Stylish Custom CSS Checkboxes and Radio Buttons
Radio buttons and checkboxes that have been styled are usually considered too flashy and unnecessary by many developers. However, sometimes they become the necessity especially when the existing styling of the pages is poor and does not give the type of functionality that is required. There are a number of creative things that can be done with both, checkboxes and radio buttons, to make them look…
View On WordPress
Each input type has a very specific use-case, and using the wrong input can be confusing for your users.
Prototype Radio Button Serialization Bug
It turns out that my favorite JavaScript library has a rather weird chink in its otherwise impregnable armor. The Form.Serialize method makes a complete hash (no not an object hash, a right royal mess kind of hash) of serializing radio buttons. Google of course came to the rescue with this very excellent fix from Rex Chung. This works great if you've got one set of radio buttons, I had an unknown number to deal with. So here is a slightly modified version that uses Prototype's findAll:
Form.getInputs('formName','radio').findAll(function(rad){ return rad.checked; }).each(function(rad) { //Deal with each radio button here by referencing the method argument "rad" alert(rad.value); });
Works like a charm.
SVG Radio Buttons
When I originally made my Charts Sampler program, I didn’t like the default design of HTML radio buttons. After a little bit of googling, I discovered that you can design your own radio buttons using only CSS.
The trick involves using a <span> within a <span> and creating a circle within each other, using the border-radius command.
EXAMPLE CODE:
However, depending on how zoomed in or zoomed out your browser is, that “trick” looked pretty shoddy.
Above: example of using border-radius to draw circles
Sometimes the smaller circle would perfectly sit snugly inside the bigger circle. But more often then not, that smaller circle would move downward, or off to the side. It didn’t matter if I used %, em, px ... whatever units I used for setting the dimensions of each circle, it would still skew on many browser magnification settings.
Fast forward a few months...
Now that I’m gaining a better understanding of SVG, I decided to try to revise my Chart Sampler code by using SVG circles in place of border-radius.
In my quest to solve this problem, I located a JS Fiddle program that illustrated how you can nest SVG points in a CSS background-image: url command.
Once I got my SVG data to work in the JS Fiddle program, I then copied it into my Chart CSS Stylesheet.
Note: the ‘.inner’ class is the name I gave the <span> within the <span>
Now, with the SVG version, the circles remain perfectly inside each other. (The outside circle is actually described by the SVG stroke and stroke-width attributes. The inner circle is the fill.)
In case you’re curious, the green/gray circles use this line for the background-image:
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='30' width='30'><circle cx='15' cy='15' r='8' stroke='#666' stroke-width='3' fill='#99c199' /></svg>");
New Post has been published on Html Use
New Post has been published on http://www.htmluse.com/fatoggle-creates-toggling-icons-with-font-awesome-icons/
faToggle - creates toggling icons with Font Awesome Icons.
Download Demo
faToggle is a jQuery plugin that creates toggling icons with Font Awesome Icons.
Features
Create Toggle buttons with font awesome icons
Create Radio and checkbox form elements with font awesome icons
Assign event handlers for toggle on and off
Designed for Font Awesome 4.2.0 and up
Summary: Select a single radio button by default in most cases. Reasons to deviate or not: expedite tasks, the power of suggestion, user expectations, safety nets.