> I was just wondering: is there was any way to instruct user agents to
> treat text as preformatted, but to also have that same text break lines
> to fill line boxes? I think this used to be achieved by using the wrap
> attribute of the pre tag (with "wrap" and "nowrap" as values, I think?),
> but I'm aiming for xhtml 1.0 conformance and if the pre tag ever
> officially had the wrap attribute, it doesn't any more :).

I'm going to answer my own question here, for posterity's sake (and in
case anyone here ever hits the same wall I did): the kind of behaviour I
was after here is available in CSS2.1. The white-space text property can
take five values (normal, pre, nowrap, pre-wrap, pre-line), and pre-wrap
achieves the behaviour I was after.

Further reading:

http://www.w3.org/TR/2004/CR-CSS21-20040225/text.html#propdef-white-space

-- 
Andrew Taumoefolau

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 

Reply via email to