Actual pixel size of columns attribute for asp.net textbox
3 answers
The Columns property maps to the size attribute on the rendered input tag.
If the size is 10, the browser should render the input field at a size that is 10 characters long and visible in the input field. But this really only works for monospaced fonts, since in many other fonts "III" will not have the same pixel length as "MMM".
Generally, you're better off just using CSS width as Ryan said.
+5
source to share