Customize width and height
17 Feb 20221 minute to read
The following section explains about how to customize the height and width of the RadioButton component.
@Html.EJS().RadioButton("radio1").Label("Option 1").Name("default").Checked(true).Render()
@Html.EJS().RadioButton("radio2").Label("Option 2").Name("default").Render()
<style>
.e-radio-wrapper {
margin-top: 18px;
}
li {
list-style: none;
}
.e-radio + label::before {
height: 30px;
width: 30px;
}
.e-radio + label::after {
height: 28px;
width: 28px;
}
.e-radio + label .e-ripple-container {
height: 40px;
left: -6px;
top: -5px;
width: 42px;
}
.e-radio + label .e-label {
font-size: 15px;
height: 32px;
line-height: 30px;
padding-left: 41px;
}
</style>
public ActionResult CustomHeight()
{
return View();
}