Search code examples
asp.net-mvc-3mvc-editor-templateseditorfor

How to change the width of editorfor in mvc3


Possible Duplicate:
How to create a generic MVC3 editor template?

I am using editorfor as my input control and this is going out of my form when the screen resolution is low. I need to reduce the width of the control to fix this problem. I am trying to write an editor template for this but i am not figure out how. Please help me here.


Solution

  • Try looking at this link. They seemed to be able to manipulate the EditorFor field by wrapping it in a div and then using CSS to manipulate the div.