cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Input field width filling to width of Fieldset, regardless css width settings
October 1, 2011
5:59 pm

Firefox 6.0.2 and Safari (not sure which version) both on Mac (I don't know how this will look on PC)


Problem: Fields are too wide, forcing the labels above the field. I've changed the width settings in the style sheet but it has no effect.


Hope this is worth a new thread, I looked through the older posts until exhaustion, but did not see a correction for this.

October 6, 2011
8:09 am
Norman Abramovitz

Your field width is coming from .cform input which is set to 97%.   You need to either reduce that number to say 50% so all fields shrink or you need to change the width of each field using the field id value.  The field id has the name like

cf_field_<n>, so cf_field_1, cf_field_2, etc.


I believe a line at the bottom of your css file like


#cf_field_2 { width 100px; }


should shrink the field width.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
29 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)