On Monday, December 27, 2010 10:44:36 am David Laakso wrote: > On 12/27/10 10:29 AM, David McGlone wrote: > > Hi everyone, > > > > I am wondering if it's possible to use css to style a text area in finer > > detail than just using "cols" and "rows" in the tag. I have a text area > > on a contact page, but by just using cols and rows I get different > > results in different browsers. Here's my codes: > > > > text area code: > > <textarea name="notes" cols="63" rows="5"></textarea> > > > > css code: > > .mailform{ > > margin-left: 10px; > > margin-right: 10px; > > border: 1px solid; > > float: left; > > > > } > > > > is it possible to get the textarea to automatically expand to the width > > of the css container (.mailform)? > > textarea { width : 75%; height : 8em; margin : 0; } ???
This worked. I did not know I could do such a thing. Always thought I had to wrap this type of stuff in a <div>, so I've learned something today from you :-) Thank you. > > A clickable link to your page would help... True. I was a little too lazy to upload. -- Blessings David M. ______________________________________________________________________ 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/