Link to home
Start Free TrialLog in
Avatar of looktothefast80
looktothefast80

asked on

textarea problem with the percentage sign

Please help me to fix my code, I'm writing this script because of the screen matter(screen resolution), because  some how the code below didn't output the number with%.

I had the code below

<textarea rows="10%" name="codes" cols="80%"></textarea>
Thanks
ASKER CERTIFIED SOLUTION
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of looktothefast80
looktothefast80

ASKER


Some how the ccs on the textarea is not always display 100% within the table

I like to keep the table and the text box always at 100%


<table style="height:100%;width:100%" bordercolorlight="#FF00FF" border="5" >
<tr>
<td>
<p><textarea style="height:100%;width:100%" name="codes"></textarea></p>
</td>
</tr>
</table>
height:100% is not valid and most of the time the browser render incorretly when you use it.  the text area probably has a default margin it.  So try adding margin:0 to the style for it.  How it renders can also be affect by the doctype.  What doctype are you using?

Cd&
I don't know what is doctype, so I guess I didn't use any doctype , all I use is just the HTML.

so how do we keep the text at 100% and also keep the table display at 100%, because when I just just the textarea only, I can display 100% on any screen resolution, but if I try to put the textarea into the table then somehow the textarea is only display about 2 lines.

Tables are not intended to be used for layout management they are for the presentation of tabular data.  Post a link to th epage so I can see what you are trying to do.

Cd&

I am trying to allow the webpage to resize the screen automatically.
Again the below is my script and all I want is to work out with textarea within the table.

here is the link about the script below
http://www.geocities.com/mankindneverlast/testing.htm

you will see that the table does change but the textarea didn't change, if we change screen resolution.

<table style="height:100%;width:100%" bordercolorlight="#FF00FF" border="5" >
<tr>
<td>
<p><textarea style="height:100%;width:100%" name="codes"></textarea></p>
</td>
</tr>
</table>


if you are going to do web pages, you are going to need to learn a little more coding.  That is not even a valid page.  the only reason it renders at all is because browsers are very tolerant of errors.

I think you need to tart here with some HTML and CSS tutorials:

http://www.w3schools.com/

It does not take long to learn to do valid page; but without the basics you will never be able to control your pages.

Cd&
so there is no way to write the scrip like what i said