John Bokma <postmaster@castleamber.com> wrote in message news:<40b4ce15$0$197$58c7af7e@news.kabelfoon.nl>.. .[color=blue]
> using <pre class="poem"></pre>?
>
> or a <div class="poem"></div> in combination with <br> Which I use now,
> and think its ugly, I prefer the pre I think but I ask first :-D.[/color]
I think a <div> is more logical. It's one lump of text belonging
together, so why not put it in a div? If you use <pre>, most browsers
will, by default, render this in a monospace font, which may not be
what you want. You could style the pre according to your wishes, of
course.
More importantly, inside the <div> you can add still more structure at
the markup level, allowing you to style, for example, the first letter
of each stanza.
If you have complicated indentation that is relevant for the poem,
<pre> may be easier. You can add <span>s and give them the appropriate
margins, but a <pre> is more robust if a user doesn't follow your CSS
suggestions.
Have a look at
http://www.phys.uu.nl/~gdevries/test/poem.html: I wrote
the same poem twice, once in a <div> and once in a <pre>. Try viewing
the page without the styling (easily done in Opera), and you'll see
the differences.
[color=blue]
> I read somewhere, sometime ago, about using a div for each line (each
> verse), hold lines together (stanza) with another div, and
> another div to contain all.[/color]
Why make it so complicated? Using <p> for a stanza, and <br /> for a
line break seems more natural.
Best regards,
Garmt.