Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

textarea problem with the percentage sign

Posted on 2005-04-06
10
Medium Priority
?
298 Views
Last Modified: 2012-05-05
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
0
Comment
Question by:looktothefast80
  • 4
  • 4
8 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 480 total points
ID: 13723849
You cannot do rows and columns as a percentage it is in character and lines.  If you want fine control of the element you have to use css

<textarea style="height:10%;width:80%"  name="codes"></textarea>

Cd&
0
 

Author Comment

by:looktothefast80
ID: 13731992

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>
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 13732275
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&
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:looktothefast80
ID: 13732493
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.

0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 13732585
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&
0
 

Author Comment

by:looktothefast80
ID: 13732658

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>


0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 13732749
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&
0
 

Author Comment

by:looktothefast80
ID: 13743991
so there is no way to write the scrip like what i said
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question