Change size fields in forms

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Sandernekeman
Forum Members
Forum Members
Posts: 22
Joined: Sun Feb 08, 2009 8:34 pm

Change size fields in forms

Post by Sandernekeman »

Hi all,

I am currently getting frustrated about changing the size of only one field - for the other fields it worked to add to CSS;

div.contactform #m2fbrp__5 {
  width: 80%;
}

However, for one field (field 3) (an email field) it didnt work -

Email


Stuur mij een kopie

Obviously, the fact that this being an email field makes this fiels different from the others - but does anybody know who I can still change the size of this field to 80% as well? By the way, the text i have copied in above i copied from firebug, i cannot find it anywhere in my CMSMS...

Regards,

Sander
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Change size fields in forms

Post by Dr.CSS »

Look in the rendered page view source to find any id or class that the input field uses then target that with css...
jayPjay
Forum Members
Forum Members
Posts: 70
Joined: Thu Feb 26, 2009 7:25 pm

Re: Change size fields in forms

Post by jayPjay »

Sandernekeman wrote: Hi all,

I am currently getting frustrated about changing the size of only one field - for the other fields it worked to add to CSS;

div.contactform #m2fbrp__5 {
   width: 80%;
}

However, for one field (field 3) (an email field) it didnt work -

Email


Stuur mij een kopie

Obviously, the fact that this being an email field makes this fiels different from the others - but does anybody know who I can still change the size of this field to 80% as well?
I had a probleme with getting the email field at the right spot and had to div all textfields to be able to move it.

To move and edit the size for the Emailfield I used:

fieldset input {
width: 80%;
margin-right: 3px;
margin-left: 28px;
}

Worked for me, but why we cant div. it directly i dont know.

Dui
From a dane in Germany
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Change size fields in forms

Post by Dr.CSS »

If you are using formbuilder you can add a class to every field in the second tab of the filed and then style it maybe like this...

http://www.metachrome.co.uk/wide-format-printing.htm
jayPjay
Forum Members
Forum Members
Posts: 70
Joined: Thu Feb 26, 2009 7:25 pm

Re: Change size fields in forms

Post by jayPjay »

Hi Mark,
thats what we did  ;)
The probleme we have/had was that the emailfield somehow doesnt respond to any css a all????

For my reason the above mentioned, worked.
thx
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Change size fields in forms

Post by Dr.CSS »

With out a link I have no idea what the form is outputting...
jayPjay
Forum Members
Forum Members
Posts: 70
Joined: Thu Feb 26, 2009 7:25 pm

Re: Change size fields in forms

Post by jayPjay »

http://web19.fph027.de/cmsmadesimple/in ... age=inland

All other fields worked, the emailfield didnt.

the
fieldset input {
}

fieldset label {
}

also move radio and checkbox fields, my probleme was that I couldnt align the text and emailfields, without getting the radio and checkboxes  all over the place *shame*
I problaly did the wrong way, but it worked  :D
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Change size fields in forms

Post by Dr.CSS »

Looks nice...

But you may want to run it thru html validator...
Post Reply

Return to “Layout and Design (CSS & HTML)”