...

View Full Version : textare and div problem



sparkle
10-23-2006, 10:29 AM
Hi,
I am having a problem with TEXTARE, INPUT and DIV elements.
I set both to width 100% (style="WIDTH:100%"). However, when I post a long sting, and click out the element (TEXTAREA or INPUT) It automatically expands.
It doesn't happen, of course when I set the width by pixels, but I need to set it to 100% so it fits all screen resolutions.

My codes:
input:

type="text" name="title" size="46%" value="Title" style="width: 100%">
textqarea:

<textarea id="paste" style="overflow:auto; WIDTH: 100%; HEIGHT: 250px;" name="paste" rows="15" cols="50" >blah</textarea>

div:

<div id="paste" style="border:1px solid #345487; WIDTH: 100%; HEIGHT: 100%;
font-weight:400;
font-size:9pt;
color:#000;
background-color:#eef2f7;
overflow:auto" name="paste" rows="15" cols="50">

Any idea please?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum