Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 16th, 2006, 06:15 AM
Gérard Talbot
Guest
 
Posts: n/a
Default CSS equivalent of IE's wrap="off" and wrap="hard"

Hello fellow stylers,

What would be the best CSS equivalent of MSIE's wrap="off" and wrap="hard"?

hard Text is displayed with wordwrapping and submitted with soft returns
and line feeds.

off Wordwrapping is disabled. The lines appear exactly as the user types
them.

http://msdn.microsoft.com/workshop/a...asp?frame=true

Gérard
--
remove blah to email me
  #2  
Old March 16th, 2006, 07:55 AM
Jim Moe
Guest
 
Posts: n/a
Default Re: CSS equivalent of IE's wrap="off" and wrap="hard"

Gérard Talbot wrote:[color=blue]
>
> What would be the best CSS equivalent of MSIE's wrap="off" and wrap="hard"?
>[/color]
There is none.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
  #3  
Old March 16th, 2006, 08:05 AM
Jukka K. Korpela
Guest
 
Posts: n/a
Default Re: CSS equivalent of IE's wrap="off" and wrap="hard"

Gérard Talbot wrote:
[color=blue]
> What would be the best CSS equivalent of MSIE's wrap="off" and wrap="hard"?[/color]

Have you checked the recent "textarea wrap" thread? It's a bit confused,
but it becomes relatively clear if you ignore everything that "VK" wrote.
  #4  
Old March 16th, 2006, 10:55 PM
Gérard Talbot
Guest
 
Posts: n/a
Default Re: CSS equivalent of IE's wrap="off" and wrap="hard"

Jukka K. Korpela wrote :[color=blue]
> Gérard Talbot wrote:
>[color=green]
>> What would be the best CSS equivalent of MSIE's wrap="off" and
>> wrap="hard"?[/color]
>
> Have you checked the recent "textarea wrap" thread?[/color]

Believe me: I submitted this post before noticing that other thread.

It's a bit confused,[color=blue]
> but it becomes relatively clear if you ignore everything that "VK" wrote.[/color]

I stopped at the point where there is too much fighting. My question is
a technical one; it shouldn't lead to fighting.

MSDN "hard Text is displayed with wordwrapping and submitted with
soft returns and line feeds."

CSS 2.1 on white-space: pre-line says:
"This value directs user agents to collapse sequences of whitespace.
Lines are broken at newlines in the source, at occurrences of "\A" in
generated content, and as necessary to fill line boxes."

I think (though am not sure) the 2 are not equivalent.

Gérard
--
remove blah to email me
  #5  
Old March 17th, 2006, 08:45 AM
Jukka K. Korpela
Guest
 
Posts: n/a
Default Re: CSS equivalent of IE's wrap="off" and wrap="hard"

Gérard Talbot wrote:
[color=blue]
> I stopped at the point where there is too much fighting.[/color]

There was no fighting; it takes two to fighting. In the other thread,
there was information and disinformation, and someone kept repeating the
disinformation (and apparently got nervous when repeatedly corrected).
[color=blue]
> My question is
> a technical one; it shouldn't lead to fighting.[/color]

Welcome to Usenet. :-)
[color=blue]
> MSDN "hard Text is displayed with wordwrapping and submitted with
> soft returns and line feeds."[/color]

That's Microsoftese for saying that the browser, in addition to
displaying (echoing) data in a certain way, distorts the data by
inserting line breaks (Carriage Return and Line Feed). The word "soft"
is particularly misleading here.
[color=blue]
> CSS 2.1 on white-space: pre-line says:
> "This value directs user agents to collapse sequences of whitespace.
> Lines are broken at newlines in the source, at occurrences of "\A" in
> generated content, and as necessary to fill line boxes."[/color]

CSS 2.1 is a draft that says that it is inappropriate to cite it as
other than work as progress, though the W3C itself in effect presents
CSS 2.1 as the current CSS specification. Confused? You _will_ be after
hearing that although in general CSS 2.1 is the closest thing we have to
a de facto standard, some particular features there are not widely
supported. Note that CSS 2.0, which is still formally the W3C
Recommendation, does not contain the value pre-line.
[color=blue]
> I think (though am not sure) the 2 are not equivalent.[/color]

They surely aren't, since the CSS thing relates to rendering only, not
to submitted data.

The attribute wrap="off" is pointless, because the design of an
application that involves processing form data cannot reliably expect
and need not expect to have data processed the way that wrap="off"
suggests. Browsers might ignore the nonstandard attribute. Besides,
users can do something nasty like use a modified version of the form to
submit data. Hence, the form handler should be prepared to anything,
including arbitrarily long lines. It's a very small part of robust form
data processing to split lines if needed.
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles