Jump to content

textarea rows & cols in CSS?


atrum

Recommended Posts

Hello all.

 

I just had a quick css form question. I am trying to get the textarea's rows, and cols attribute set in css. So for example how can I do this in CSS.

 

<textarea rows="20" cols="20"></textarea>

 

So far, I can set the width and height with not problem, but the text area won't apply the multiline attribute with out having the rows attribute applied in the html.

 

Any help would be greatly appreciated.

 

Link to comment
Share on other sites

Ok, I have one more question about the textarea, specifically with firefox. Go to tools.exiled-alliance.com/calltool.dev/

 

The textarea on the right refuses to automatically wordwrap, and just keeps scrolling to the right.

If you check that site in IE it word wraps just fine. Any Insight on this, or what I could be doing wrong?

Link to comment
Share on other sites

You aren't one of those guys that is testing it by putting in a 50 character long word are you? That will break it, but there aren't any 50 character words in English. If your input can handle 12 characters, you are pretty much ok.

Link to comment
Share on other sites

I am starting to see how important it really is to get things working in FF first. I am still fairly novice when it comes to browser support. normally I just did what ever the hell worked, and didn't bother to see if it worked in all browsers let alone FF.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.