CSS/validating equivalent to wrap=physical?

Discussion in 'CSS' started by Josh Inno, Mar 30, 2007.

  1. #1
    I've been going through and working on validating some code, and I discover that apparently when working with a textarea, the attribute "wrap" is not supported by the W3 standard. I was wondering if there was a way to deal with this using CSS, or some other html attribute that will validate.
     
    Josh Inno, Mar 30, 2007 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Before I dig into the <textarea> element, tell us what are you trying to accomplish, as opposed to asking how to implement what you've decided is the solution.

    I am not familiar with a "wrap" attribute. I'll guess it's about how white space is handled, but that doesn't tell me what the "physical" value is supposed to do. Is that an IE proprietary attribute?

    cheers,

    gary
     
    kk5st, Mar 30, 2007 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #3
    OK, I just looked it up. "physical" is the default behavior of <textarea>, so just remove the attribute.

    cheers,

    gary
     
    kk5st, Mar 30, 2007 IP
  4. Josh Inno

    Josh Inno Guest

    Messages:
    1,623
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Ah. Thanks.

    Textwrap is used to describe how the text is entered is translated into text received by whatever is handling the form. Physical text wrap causes there to be a line break wherever the text wraps in the box. Logical only causes a break when someone hits the enter key.
     
    Josh Inno, Apr 2, 2007 IP