On Apr 20, 2008, at 6:08 AM, Anas R. wrote:
> Imagine that you want to print a long pre line, wich has a vertical
> scroll bar (like thishttp://www.richstyle.org/web.php),
> When you want to print it you'll have 2 choices:
> - Either activating ward-wrap (using white-space: normal), then
> you'll lose ASCII-line-breaks and tabs.
> - or you'll keep line-breaks and tabs, then you'll lose the rest of
> the line!
>
> According to w3c specifications there are another choice to print
> both line-breaks/tabs and there rest of the line wich is pre-wrap
> but it didn't work in any browser, any soltion please?
selector {
white-space:-moz-pre-wrap;
white-space:-webkit-pre-wrap;
white-space:-o-pre-wrap;
white-space:pre-wrap;
}
should cover most browsers.
For IE, iirc, you need to add ' word-break:break-all'.
Philippe
---
Philippe Wittenbergh
http://l-c-n.com/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/