HighDots Forums  

Re: CSS for poetry?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: CSS for poetry? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Re: CSS for poetry? - 07-17-2003 , 12:44 AM






Rob Stevenson <donutmachine (AT) ns (DOT) aliantzinc.ca> wrote...

Quote:
There are lots of new possibilities in the CSS3 spec, but most browsers
don't support them yet, and most users won't have browsers that support
them any time soon. So I was wondering if anyone has worked out clever
bits of CSS to help lay out poems on the web.
Unfortunately this is a long-standing problem, and it has no good
solution with present-day CSS as far as I have been able to determine.
One prior discussion of it is here:

http://groups.google.com/groups?hl=e...61cf7f9&rnum=1

The cause of the problem was a conceptual breakdown in the thinking
behind the earliest versions of HTML. There never should have been a
<BR> element, which isn't an element at all but a stand-in for a
carriage return. The *element* that should have been in HTML from the
beginning was <LINE></LINE>, but it doesn't exist. Without a <LINE>
element there isn't any way to reliably use CSS to style poetry. We
fall back to unstyled, monospace <PRE> elements, which are pretty
poor, or putting every single line into a div or span.

A related problem with poetry is that poems are conventionally set
flush left within their own text block but that text block is centered
on the measure, and this is another thing that isn't cleanly possible
in CSS, although it is perfectly ordinary typography. There are clunky
work-arounds but nothing elegant.

Here's a poetry page I worked on for a while. I haven't examined it in
a long time, so probably should inspect the layout on a variety of
newer browsers:

http://rjohara.net/teaching/uncg/bio105poems.html

Bob O'Hara (http://rjohara.net)


Reply With Quote
  #2  
Old   
Lauri Raittila
 
Posts: n/a

Default Re: CSS for poetry? - 07-17-2003 , 04:03 AM






In article <bd882d31.0307162144.e80a01b (AT) posting (DOT) google.com>, Robert J.
O'Hara wrote:

Quote:
A related problem with poetry is that poems are conventionally set
flush left within their own text block but that text block is centered
on the measure, and this is another thing that isn't cleanly possible
in CSS, although it is perfectly ordinary typography. There are clunky
work-arounds but nothing elegant.
The display:table;margin:auto; way is IMO good enaugh, but problem is IE,
as usual. (inline-table and inline-block are nice too)

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.