title: How to change the size/width of an input field with Code Igniter?
body: <p>How can I ensure that my <code>input field</code> is a certain size using <code>codeigniter</code>? Im using <code>'size'</code> attribute at the minute but its not working.</p>
  
  <p>Current code:</p>
  
  <pre><code>$dataArray= array(
  
  'name'=&gt; 'test',
  'id'=&gt; 'test',
  'value'=&gt;'10',
  'size'=&gt; '2',
  );
  
  
  echo form_input($dataArray);
  </code></pre>
  
  <p>However the input box is still taking up the full width of the screen.</p>