0

I would like to create a radio button with backgroundcolor=red.

I have this HTML code:

<input type="radio" id="car" name="carname" class="k-radio"/>
    <label class="k-radio-label" for="car">car</label>

I would to set background-color of kendo-radiobutton.

Federico
  • 342
  • 8
  • 30
  • Your question is quite unclear. What have you tried? What problems did you have? – Jacob G Mar 23 '17 at 15:36
  • I wrote: style="background-color: red", but it doesn't work – Federico Mar 23 '17 at 15:42
  • 1
    You can't really change the appearance of radio buttons that much, you need to style the label instead. Here's an example of it http://stackoverflow.com/questions/24516958/styling-radio-buttons-into-a-square/24517881#24517881 – Jacob G Mar 23 '17 at 15:47

2 Answers2

2

The answer above changes the entire unfilled radio bubble color for KendoRadioButtons. If you want to change the color of the inside circle on checked items here's what I'm using:

input.k-radio:checked + label:after {
    background-color: red !important;
}
Eric
  • 31
  • 5
1

Try

input[type=radio].k-radio + .k-radio-label:before {
    background-color: red;
}

Demo here

Ademar
  • 1,418
  • 1
  • 17
  • 27