Page 1 of 1

text area problems

Posted: Wed Nov 26, 2008 5:17 am
by amazer
first post... I'm a complete noob on the topic of web design. Im trying to create a web page for my kids school markets. It doesnt have to be flash. The layout is open source I have taken from the web. I was impressed with myself for putting the layout in a header file and including it on my pages, getting rotating images, reading a file and getting the next market date to display, and I got a plain emailer page set up and working. But then I tried to add the formatting to it. Something that should be the easy part. However I'm having problems with the textarea width and wrapping. Would be really appreciative if someone can help me out on what is probably(hopefully) a very simple problem.

1. The textarea width. It doesnt matter how many columns I put in, its always the same width if the table is in a .php page. in a plain .html page, the text area grows and shrinks as asked. Same problem in firefox and IE. WHY!?!?!?!
2. The wrapping. Doesnt matter what I do in firefox, it wont wrap at all. It just goes off on one long long line, both in php and html forms. On IE this doesnt happen. Doesnt matter what I put in the wrap attribute, or if I leave it out. See what I mean at http://www.wscc.org.au/markets/enquiry.php At the moment I'm just bouncing the email back to sender.

Code: Select all

<tr>
    <td valign="top">Query</td>
    <td>
        <textarea name="Query" rows="10" cols="50" wrap = "virtual"></textarea>
    </td>
</tr>
Firefox
Image

IE
Image

Re: text area problems

Posted: Wed Nov 26, 2008 5:24 am
by aceconcepts
For the width issue try using style="width:50px;" or whatever width you want.

The textarea won't wrap the continuous string because there are no white spaces. Try typing a paragraph such as "i love using textboxes because they wrap text really well".

Re: text area problems

Posted: Wed Nov 26, 2008 5:40 am
by amazer
Thankyou very much, you saved my head

re the wrapping. DUH, I never even thought about it.

and the size is working perfectly with your suggestion. In firefox at least, will check IE some other time. That method of resizing is brilliant... dont have the problem of trying to get textareas and text fields to match up.

I have so much to learn :D

Re: text area problems

Posted: Wed Nov 26, 2008 5:43 am
by aceconcepts
Look into using inline style as i demonstrated or event better css classes. Very useful once you get into them :D