Closed (won't fix)
Project:
Drupal core
Version:
4.7.0
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2006 at 14:49 UTC
Updated:
7 May 2006 at 16:05 UTC
I tried making a form element with the following properties:
'#type' => 'textfield',
'#maxlength' => 2,
'#size' => 2,
When the field is displayed, the size properties doesn't seem to take effect. It turns out that the following block from drupal.css conflicts:
.node-form .form-text {
display: block;
width: 95%;
}
The width property takes precedence over the size property. Using width:auto; allows the size property to have an effect. That works fine with an extra CSS file, but that's probably not an appropriate change for drupal.css.
Comments
Comment #1
chx commentedOverride in your theme by width: auto.