By drupalxykon on
whats the correct way to deal with textboxes which extend beyond a themes layout?
for example : I have a 3 column layout and the 'message' box of contact.module is too wide.
Do I create a new function in template.php with a smaller width or can this be dealt in css?
Or can I set the size of all 'textarea' fields somewhere globally?
Thanks,
V
Comments
Not a single rule but you can probably cover with 2 css rules
If you want to override all resizeable textareas you can use
where width is the value you desire. It could be in pixels (px), precent (%), inches (in) or a number of other units.
For non resizable textareas I believe you want to use
You can restrict either of these to a particular form by placing the form id in front like;
#node-form .resizable-textarea.Thanks Any solution with
Thanks
Any solution with phptemplate?
That is a phptemplate solution
That is a phptemplate solution, you just need to style.css file that is part of theme (I think I mistyped before and said styles.css)
yes thanks. that solution
yes thanks. that solution worked. I changed it to 75% in resizeable. instead of form-textarea I changed .formitem textarea{
}
following the suggestion of
following the suggestion of 'Heine' from IRC I added phptemplate_theme_textarea and reset $cols.
javascript will resize the textbox to whatever percent its set to though.
More details if you don't mind...
Hi vrao,
I'd like more details on how to do this. I've tried the css, but can't really hook into the speciic fields I want without messing other things up.
Some quesitons:
Thanks for your help.
Cheers,
--
tys