On Mon, 21 May 2007, david wrote:

> Update: after posting that, I saw someone else mention song lyrics or
> poetry. Being a writer of both, all I can say is - that each line is
> easily handled as a separate paragraph, with CSS controlling line
> spacing and left/right margins.

I don't think it's adequate to make each line a paragraph. When CSS is 
off, it will look bad. It will _sound_ bad, since speech browsers 
typically pause between paragraphs.

But using <div> for each line works well, and lets you add left margin 
easily if desired. And it requires no CSS if simple rendering is OK.

There's also the option of using <pre>, which is convenient if you now 
have poems in plain text format, possibly with spaces at the start of 
lines to be preserved. The drawback is that the font is monospace by 
default, but this can easily be fixed in CSS. (The opposite approach, 
using <p>...</p> with white-space: pre might be theoretically better, but 
it doesn't work on some old browsers and causes a mess when CSS is off.)

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to