Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    dimensions of textarea in CSS?

    Hi,

    was reading a thread which highlighted the fact that dimensions of text areas should be in the html - presumably rows and cols. I have used dimensions (in px) for these in my css and they seem to display OK.

    Is there a specific browsers(s), which cries if you don't insert rows and cols into the html?

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I think this is for all text-only browsers like Lynx.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,695
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Quote Originally Posted by bazz View Post
    Is there a specific browsers(s), which cries if you don't insert rows and cols into the html?
    Probably not but if you care for valid code rows and cols attributes are mandatory. A textarea lacking these attributes is invalid according to the HTML specs by the W3C.

  • #4
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Thanks, my pages are valid so I must have addressed this a long time ago and forgotten.

    I have rows and cols as well as the css which I think is a bit of duplication. Wouldn't it be better if textareas and perhaps textboxes were to have a browser default size which would well, be used unless css was overriding it?
    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #5
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    As far as I know no browser requires them to be present (and indeed, a lot of the web would break if you did, so a browser with such a requirement would be unusable). Equally, they are optional in HTML 5.


  •  

    Posting Permissions

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