A nice way to get a textarea to be the exact size that you want it to be is to forget about setting its width and instead use a container div with the same background color. Use the cols attribute of the textarea to set it to some value that will put it just inside the container div's boundary, and that will make it appear to be the exact width that you need it to be.
This technique is useful for making a textarea appear to be the exact same width as other text inputs that may be on the same form for a more uniform appearance. Michael On Fri, Jan 9, 2009 at 2:28 PM, Eric Cash <etc...@gmail.com> wrote: > I hate form elements... > > I've run into this problem before, I don't think I've ever actually > understood it. > > On this page > > http://scotaganda.com/work/MineKey/opinionsBoard.html > > the "Express your opinion" textarea is fine in firefox, but both safari and > ie place "control" on the right hand side of the textarea, which makes it > grow about 8px, and break the layout. > > I'm not sure of the correct way to get this thing to behave, and I'd rather > not keep poking around in the dark here > > I have a div wrapped around it, with the correct width, and I'm not sure > why > just setting the textarea's width to 100% won't correctly display, any help > here? > ______________________________________________________________________ > css-discuss [cs...@lists.css-discuss.org] > http://www.css-discuss.org/mailman/listinfo/css-d > List wiki/FAQ -- http://css-discuss.incutio.com/ > List policies -- http://css-discuss.org/policies.html > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ > ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/