Écrit le 14 décembre 2006 à 2:43
pre {/* http://blog.empyree.org/?2292 */ white-space:pre-wrap; /* CSS 2.1 & CSS3 – Presto */ white-space:-moz-pre-wrap; /* Gecko */ word-wrap:break-word; /* Internet Explorer 5.5+ */ _white-space:pre /* Internet Explorer 5.5+ hack */ }
pre-wrap : [...]
Écrit le 13 mai 2006 à 5:49
My goal is to get rid of the pre, that I consider useless: it is a presentational tag with no semantic value attached to (the closest to it in current use is code and their relationships are pretty much like the one between q and blockquote—which incidentally had been removed from XHTML 2.0). I plan to use p class="pre" instead. I should only impact text browser (search engine should not care).
Écrit le 12 mai 2006 à 1:11
Un petit dessin vaut mieux qu’un long discours
[HTML] pre permet de rentrer du texte « tel quel ».
[CSS] white-space:pre-wrap fait de même, mais replie les lignes. Il n’est malheureusement gr que par Opera
voici les les extensions propritaires pour les autres navigateurs
Mozilla : white-space:-moz-pre-wrap
Internet Explorer 5.5+ et Safari : word-wrap:break-word
Internet Explorer 5.5+ aussi : _white-space: pre
Je n’aime toujours pas les hacks, [...]