Make radio button bigger?

HtmlCssButtonRadio Button

Html Problem Overview


Is there any way to make a radio button bigger using CSS?

If not, how else can I do it?

Html Solutions


Solution 1 - Html

Try this code:

 input[type='radio'] { 
     transform: scale(2); 
 }

Solution 2 - Html

You can easily able to set it's height and width as with any element.

Here is the fiddle with code

JSFIDDLE BIG RADIO BUTTON

HTML

<input id="r1" type="radio" name="group1" class="radio1" />
<label for="r1">label 1 text</label>
<input id="r2" type="radio" name="group1" class="radio2" />
<label for="r2">label 2 text</label>
<input id="r3" type="radio" name="group1" class="radio3" />
<label for="r3">label 3 text</label>
<input id="r4" type="radio" name="group1" class="radio4" />
<label for="r4">label 4 text</label>

CSS

input[type=radio] {
    display: none;
}
input[type=radio] + label::before {
    content: '';
    display: inline-block;
    border: 1px solid #000;
    border-radius: 50%;
    margin: 0 0.5em;
}
input[type=radio]:checked + label::before {
    background-color: #ffa;
}

.radio1 + label::before {
    width: 0.5em;
    height: 0.5em;
}

.radio2 + label::before {
    width: 0.75em;
    height: 0.75em;
}

.radio3 + label::before {
    width: 1em;
    height: 1em;
}

.radio4 + label::before {
    width: 1.5em;
    height: 1.5em;
}

Styling radio button is not easy.

Form elements in general are either problematic or impossible to style using CSS alone.

Just go through this link for your own style with bigger size for radio buttons..

Also look at this link...

Bigger radio buttons

Solution 3 - Html

You can do it using CSS but browser and OS also impact on this. Look at following article.

Styling radio buttons with CSS

Solution 4 - Html

Don't use transform: scale(1.3), it really looks horrible. Just use this:

input[type='radio'] {
  height: 15px;
  width: 15px;
  vertical-align: middle;
}

<input type="radio">Select this item

Solution 5 - Html

Try this:

HTML

<label>
   <input type="radio" value="1">
   <div></div>
</label>

CSS

input[type="radio"] {
   display: none;
}

input[type="radio"] + div {
   height: 20px;
   width: 20px;
   display: inline-block;
   cursor: pointer;
   vertical-align: middle;
   background: #FFF;
   border: 1px solid #d2d2d2;
   border-radius: 100%;
}

input[type="radio"] + div:hover {
	border-color: #c2c2c2;
}

input[type="radio"]:checked + div {
	background:gray;
}

DEMO: http://jsfiddle.net/nuzhysgg/

Solution 6 - Html

There might be some quirky <span> tricks inside radio elements but I imagine using them across different browsers would be annoying to debug.

I've used this script in the past but not recently.

Solution 7 - Html

CSS3 transform scale is blurry. Setting height & width does not work with FF (even the newest 66 does not support, 2020). The only cross-browser solution is custom HTML markup + CSS, which unfortunatelly is not the easiest way. See helpful tutorial custom radios & checkboxes.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLatoxView Question on Stackoverflow
Solution 1 - HtmlManish PatelView Answer on Stackoverflow
Solution 2 - HtmlKesaVanView Answer on Stackoverflow
Solution 3 - HtmlNaveedView Answer on Stackoverflow
Solution 4 - HtmlPaul KrugerView Answer on Stackoverflow
Solution 5 - HtmlCas BloemView Answer on Stackoverflow
Solution 6 - HtmlColeView Answer on Stackoverflow
Solution 7 - HtmllubosdzView Answer on Stackoverflow