Jump to content

<textarea> cannot change the width (only the height)


Recommended Posts

<textarea columns="1000000" rows="30">Some text</textarea>

If I change the value "rows" +/-, the text box increases/decreases in heightIf I change the value "columns" +/-, the text box does not increase/decrease in width, why? and how do I do to have a wider textarea using HTML (I don't do CSS yet)?

Link to post
Share on other sites

I don't know why. I just tested in FF and IE and in both of them, when the cols attribute was changed so did the width. Maybe post some more code?

Link to post
Share on other sites

Probably got some CSS code thats telling the textarea what width it should be. I've found its the only rule that obeys the stylesheet rather than the inline values in the rows/cols attributes.

Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...