Joshua Street wrote: > >> What's the recommended practice with indentation? > Uh - is there any reason not to use <pre>?
Charles Eaton wrote:
I'll second that with the css code of "white-space"
Well, I wouldn't say the spaces are part of the content, but rather they're a part of the presentation, based on the traditional way of presenting poems of this nature on paper...so they'd belong purely in the CSS and not in the markup (even if it's only a few space characters).
In the absence of a "line" element in xhtml (like the one proposed for xhtml 2.0 <http://www.w3.org/TR/xhtml2/mod-text.html#sec_9.7.>), something like this would probably be an acceptable solution
<blockquote class="poem"> <p> <span>Just the place for a Snark!� the Bellman cried,</span> <span>As he landed his crew with care;</span> <span>Supporting each man on the top of the tide</span> <span>By a finger entwined in his hair.</span> </p>
<p> ... second stanza ... </p>
<p> ... third stanza ... </p>
etc
</blockquote>
with a css of
blockquote.poem span { display: block; }
blockquote.poem span:first-child + span, blockquote.poem span:first-child + span + span + span { text-indent: 2em; }
Of, if we wanted to go for CSS 3 (if it were supported anywhere), that last line could be boiled down to
blockquote.poem span:nth-child(2n+2) { text-indext: 2em; }or shorthanded to
blockquote.poem span:nth-child(even) { text-indext: 2em; }Of course, neither the CSS 2 nor the CSS 3 method work in IE...so classes on the spans it is, I think.
Patrick H. Lauke _____________________________________________________ re�dux (adj.): brought back; returned. used postpositively [latin : re-, re- + dux, leader; see duke.] www.splintered.co.uk | www.photographia.co.uk http://redux.deviantart.com
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
