473,671 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TextArea width expands when typed in (IE specific)

I've encountered a bug in IE that I can not find a fix to. Maybe
someone can help me out here.

I have a 3 column css layout. The middle column is fluid and expands
as the browser is resized. I have a textarea who's width is 100%. This
text box resides in the middle column. When the page renders in IE the
textarea is sized to 100% of the middle div, the way it should be.
However, when i start typing in this box it immediately expands beyond
the left boundary of its container div.

Anyone encounter this and have a fix for it? I do not want to set this
to a static pixel width.

Thank you.
Jul 21 '05 #1
6 9266
Els
Thirteenva wrote:
I've encountered a bug in IE that I can not find a fix to.
Maybe someone can help me out here.

I have a 3 column css layout. The middle column is fluid
and expands as the browser is resized. I have a textarea
who's width is 100%. This text box resides in the middle
column. When the page renders in IE the textarea is sized
to 100% of the middle div, the way it should be. However,
when i start typing in this box it immediately expands
beyond the left boundary of its container div.

Anyone encounter this and have a fix for it? I do not want
to set this to a static pixel width.


url?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: The Beatles - Come Together
Jul 21 '05 #2


Thirteenva wrote:
I've encountered a bug in IE that I can not find a fix to. Maybe
someone can help me out here.

I have a 3 column css layout. The middle column is fluid and expands
as the browser is resized. I have a textarea who's width is 100%. This
text box resides in the middle column. When the page renders in IE the
textarea is sized to 100% of the middle div, the way it should be.
However, when i start typing in this box it immediately expands beyond
the left boundary of its container div.

Anyone encounter this and have a fix for it? I do not want to set this
to a static pixel width.


How about posting a URL where we can have a look at the problem?

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 21 '05 #3
> How about posting a URL where we can have a look at the problem?

I'll try to get an example up on the web. I can't post the URL for the
project as due to security restrictions on this web application.
Jul 21 '05 #4
Martin Honnen <ma*******@yaho o.de> wrote in message news:<41******* *************** *@newsread4.arc or-online.net>...
How about posting a URL where we can have a look at the problem?


Here's the URL, i grabbed the skeleton of your web app and plopped in
a div with a textarea in it. Text area has width set to 100%.

http://rightreason.net/test/textarea.htm

Your help is appreciated. Thank you.
Jul 21 '05 #5
Thirteenva wrote:
How about posting a URL where we can have a look at the problem?

I'll try to get an example up on the web. I can't post the URL for the
project as due to security restrictions on this web application.


Felt sure I'd responded to this first time around - the pages are
certainly in my history - but I must have been distracted before I posted :)

Anyhoo - http://fplanque.net/2003/Articles/iecsstextarea/ recommends
putting a div with a width or a fieldset around the textarea, which
should force IE to constrain it to the container.

P
Jul 21 '05 #6
On 26 Oct 2004 08:28:37 -0700, th********@hotm ail.com (Thirteenva)
wrote:
How about posting a URL where we can have a look at the problem?

----------------------------------------------------------------------------------------------------------------

Hmm...I always thought this was a good thing! I guess it depends on
how you're using the text boxes.

Regards,
Kent Feiler
www.KentFeiler.com
Jul 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1978
by: Harlan Messinger | last post by:
I created a page, currently viewable at http://mywebpages.comcast.net/hmessinger/cssbuttons1.html that displays a couple of buttons simulated with styles applied to <span> tags. The buttons have two classes applied to them, one of which has the sole effect of setting a fixed width of 125px. Then I added a DOCTYPE tag at the top of the file. In IE6, this killed the width and padding on the buttons, as seen at
1
15948
by: Mary Ann | last post by:
I would like to write code in the On Open property of a form that hides the main menu bar toolbar. I have already customized the menu bar to all for showing/hiding but have no clue how to write the code in the form. Is it even possible to do this? If so, how? Thanks!
1
9225
by: Nathan Sokalski | last post by:
I am using the ImageUrl property of the Hyperlink control to create a graphical Hyperlink. However, I want to change the size of the image I am using, but the generated HTML places the width/height properties in the anchor tag rather than the image tag. Obviously I could write code to generate the anchor/image tags myself, but when a control as nice as the Hyperlink already exists I want to know if there is any kind of workaround that will...
2
2651
by: Liming | last post by:
Hi, I'm using a third party libray and I can drag a diveand resize it. The issue is, I have a textarea inside of it and I need to resize the width of textarea and height of textarea along with it. I know what the width and height of the div will be when it finishes dragging (in "px"), so how do I convert the width and height in "px" to the cols and rows of a textarea?
0
1851
by: xprimus | last post by:
Can anyone help me with this, I have a linked image in a tale cell and whenever I click on the image it expands, not only that I have to click on it again to get the link to go. These are the culprits <td><a href="" onclick="right2();return false"><img src="right.gif" width="16"> <td ><a href="" onclick="left2();return false"> <img src="left.gif"width="16"> </a> </td>
2
3558
by: ivowel | last post by:
dear experts: is it possible to define in plain html (perhaps with css) a textarea in a form that expands over the entire width of a browser window? sincerely, /iaw
2
2020
by: ckrows | last post by:
I am attempting to create a report off of 6 option groups. Each option group is a Y or N response, populating a 1 or 2 in the tables. i want to report the number a word on the report, I chose the nested IIF statement below and placed this in my query, but now it opens a dialog box for all except the last choice, is there a way to bypass the dialog boxes or at least not prompt the user with them? There is no values in the table for the ones that...
8
15248
ddtpmyra
by: ddtpmyra | last post by:
This is just a follow-up question above, this time i wanted to have a dependend drop down that when the users selected 'others' for instance another texbox will show-up right next to my drop down. How can I do it from my code or should I place the condition if ever? thanks, DM echo '<tr><td><b>Lead Generated By:</b></td>'; $res=mysql_query("select lead from tblgenerated"); if(mysql_num_rows($res)==0){ echo "there is no data in...
1
1908
by: Dave Kosik | last post by:
I have an unbound combobox being used as a lookup. THe list is built from a query. All was working well and all of a sudden now when I type in avalue that is in the list it triggers the "NotInList" function. Any ideas why this is happening? Thanks,
0
8472
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8909
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8596
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8667
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4221
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.