On Jul 6, 2010, at 7:55 PM, Christopher Wells wrote: > My questions are as follows: > > * If I use the [CSS white-space property][3] on the `<body>`, should > this be able to preserve the whitespace between block elements (e.g. > between the `</h1>` and the `<p>`)? Or is whitespace between blocks > always removed, with the white-space property only affecting > whitespace within blocks?
Yes, white-space can be preserved, eventually. Try to style your document with :root {white-space: pre} /* or pre-line */ Then add more line feeds between the blocks. > * [The 'white-space' processing model][5] starts with, "Any text that > is directly contained inside a block element (not inside an inline > element) should be treated as an anonymous inline element". What > should I understand about pure whitespace (whitespace with no text)? 16.6.1 "The 'white-space' processing model" provides the answer <http://www.w3.org/TR/CSS21/text.html#white-space-model> (second list) > * Is there a rule (and if so, where is this rule defined) about > removing whitespace within inline elements? For example in the > following sequence `<p>The <strong> lazy </strong> dog.</p>` should > the whitespace after the `<strong>` tag be removed? (The HTML 4 spec > has [a rule about this for line breaks][6]; I was wondering whether > this rule also applied to other, non-line-beak whitespace, and whether > this rule is mentioned/defined/allowed/assumed in any XHTML or CSS > specification.) Again, refer to 16.6.1, more particularly, the first ordered list, point 4.2 Philippe --- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] 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/