Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to customize checkbox in MVC4 razor Actually , i want to change its height and width according to me . How can i do this ?
Posted

1 solution

XML
<b>There is helper used to render CheckBox in MVC4 Razor its the Html.Checkbox.
Helpers are not controls by itself, they simply generate html markup.
if you wanted to change the height and width of checkbox then you would use the third overload to do this. The overload accepts the name and html attributes where you can pass style class which is where you can change height and width in the css style sheet.</b>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900