Welcome to Discuss Everything Forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.


 

Reply to Thread

Post a reply to the thread: HTML textarea limiting size and overflow:hidden?

Your Message

Click here to log in

What color is our footer?

 
 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Rate Thread

You may rate this thread from 1-star (Terrible) to 5-stars (Excellent) if you wish to do so.

Topic Review (Newest First)

  • 06-10-2012, 08:15 PM
    ilikepizza

    HTML textarea limiting size and overflow:hidden?

    I'm having a problem with a textarea element which im trying to get to an A4 size. the dimensions are set in a surrounding DIV element (297mm,210mm) and the textarea inherits the dimensions correctly since it is nested. However even when i try overflow:hidden, or overflow-y:hidden in the textarea, it still allows more characters to be inputted, and a scroll bar appears. i want to limit the text to JUST the A4 size, no overflowing.
    What am i doing wrong?
    Here's the code:

    <div style='height:297mm; width:210mm; overflow:hidden;'>
    <textarea name='content' style='overflow-y:hidden; margin-left:10px; height:100%; width:100%;'></textarea>
    </div>

    Thank you for your help

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •