PHP5/Zend: Zend_Form_Element_Textarea problem, how do i let it not resizable.

Posted on 2011-10-31
Last Modified: 2013-11-10
hello all,

i have used component  Zend_Form_Element_Textarea  in my application.

but this component is resizable, i.e., one can use mouse to change its size on the browser.

attached is a screenshot, right down the image you can see a triangle there, using this triangle the size of textarea could be changed.

the question is: how do i define this component, so that nobody could change its size on the browser.

Question by:wantime
    LVL 14

    Accepted Solution

    In your CSS do this:

    textarea {
        resize: none;

    LVL 10

    Expert Comment

    $body = new Zend_Form_Element_Textarea('body');
        ->setAttrib('COLS', '40')
        ->setAttrib('ROWS', '4');

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now