Input width defined at css level and at the element level

jobfinderfjn

New Member
\[code\]<style>input[type="text"] { width: 200px; border: 1px solid #CCC;}</style><body><input type="text" name="test" value="http://stackoverflow.com/questions/6969810/test" size="5" /></body>\[/code\]When this is viewed on browser (Firefox 5), the "size" it appears is a fixed 200px. It seems the size I specified is completely ignored. This is from a MVC project, and that is the default style css that comes with it. For the time being, I took off the width: 200px. But is there a way to keep it there, and override it at the "input" level?I also tried\[code\]<input type="text" name="test" value="http://stackoverflow.com/questions/6969810/test" width="50px" />\[/code\]It did not override at all.
 
Top