hello

if you want to add pictures to a CCK then you got an input field for uploading

the problem is, that you can´t style the width - doesn´t work in FF3

greets

Comments

ambrojio’s picture

Bumping this request. Can anyone provide some assistance in locating where the 'size="60"' gets set?

mp’s picture

it is set in ....

/modules/system/system.module
row 183

$type['file'] = array('#input' => TRUE, '#size' => 60);

greets

michaelfavia’s picture

this, howeve is not the proper place to edit the size of the field. You can overide this value using fapi in a sitehelper module, or you can use CSS to change the width in the theme layer.

quicksketch’s picture

Category: feature » support
Status: Active » Fixed

I agree, CSS would be the best way.

In style.css:

input.form-text {
  width: 100%;
}

Of course this would affect all text fields on the whole site. You'd need to narrow it down to affect only the ImageField. However, that's beyond the help specific to ImageField (as is this entire request). Buy a book on CSS or visit http://www.w3schools.com/.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Stomper’s picture

Title: Size of INPUT field » Size of ImageField INPUT field

I currently have an ImageField field placed in a CCK form block. The block is on the right side, in the right sidebar. Currently the ImageField field is overflowing over the sidebar. I was having the same overflow issues with CCK textfields but was able to tweak the size of CCK textfields using the UI itself.

Is there any easier way to modify the size of ImageField field without having to dig directly into the CSS? Perhaps an option added to the UI? I found a similar issue for the Image module (http://drupal.org/node/774314).

If not, is it possible to push the "Browse" button to the line below the input field, perhaps so it is placed next to the "Upload"button"?

Thanks