style the input box

Feb 7, 2014 at 8:47 PM
Can you show an example on how to apply a css style to the input box?
Aug 1, 2014 at 5:37 AM
Edited Aug 1, 2014 at 5:38 AM
Hi,

How can I add style or set class to this captcha?
@{var mathCaptcha = Html.MathCaptcha("Refresh", "Input", "Is required field.", false);}
@mathCaptcha 
@Html.ValidationMessage(mathCaptcha.BuildInfo.InputElementId)
Thanks..
Coordinator
Aug 1, 2014 at 9:25 AM
Hi there,
You can use a partial view to customize your markup.
Here are some examples from the download page:
MvcCaptcha.Examples.Mvc4\GettingStarted\Views\Home\MathPartialCaptchaView.cshtml
MvcCaptcha.Examples.Mvc4\GettingStarted\Views\Home\PartialCaptchaView


Regards,
Vyacheslav Volkov