SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot 810311's Avatar
    Join Date
    Mar 2010
    Location
    Canada
    Posts
    132
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    form textarea to remain fixed (no resize)

    Good day,

    I am trying to build a contact page and insert it into Mr. Paul O'B layout (http://www.pmob.co.uk/temp/2colcentred_contentfirst.htm).

    I was wondering if the following effect can be achieved as on contact page from Mr. Andy Clarke website http://stuffandnonsense.co.uk/contact which is:
    contact form remains "fixed" including text area, when you try to pull the resize handle (bottom right) -it doesn't respond.

    Please, see printscreen form.png attached as to how I want form fields to be positioned (fixed,with no resize option).

    Please, see html and css files attached.

    Any advice is appreciated.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    I resized the textarea just fine in Chrome. You are better off not trying to force no-resize, or trying to force anything concerning forms.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,173
    Mentioned
    454 Post(s)
    Tagged
    8 Thread(s)
    Andy Clarke does it with this in his CSS file:

    Code:
    textarea {
      resize: vertical;
    }
    I must say, I've not seen that before, but TBH, I kind of like it.

    Because it's new, though (CSS3), it's not supported in all browsers. Mind you, I can't remember which browsers allow the rezising of textareas like that. Does IE? (I hardly ever use it.)

  4. #4
    SitePoint Zealot 810311's Avatar
    Join Date
    Mar 2010
    Location
    Canada
    Posts
    132
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys. It works fine for me in Firefox and Chrome. I like this effect - really neat.


Bookmarks

Posting Permissions

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