![]() |
#1 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 46
Karma: 602
Join Date: Oct 2009
Location: Hove, UK
Device: sony prs505
|
poetry
Does anyone have any tips for the best way to do poetry?
I want to create some Wordsworth and Browning collections for the library here, and I just want to get the structure of the XHTML right before starting. CSS tips would be great as well. |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,546
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Wrap each stanza in a <div>, and each line in a <div> or <p>. Do not use <br/> to break lines, because it gives you less control on what happens when a line has to break because it's longer that the screen/page width. Then assign a CSS similar to:
Code:
div.stanza { margin: 0.5em 0 0 2em; /* some vertical separation and left margin for stanzas */ } div.stanza p { text-align: left; /* you don't want poetry justified */ text-indent: -3em; margin-left: 3em; /* this two values make wrapped lines indented */ } |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() Posts: 46
Karma: 602
Join Date: Oct 2009
Location: Hove, UK
Device: sony prs505
|
Thank you that's exactly what I wanted.
And thanks also for your many uploads. I just finished one of them. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
User Poetry | Taylor514ce | Writers' Corner | 1372 | 08-10-2017 10:21 AM |
A bit of poetry | Joebill | Writers' Corner | 4 | 01-08-2010 11:01 AM |
Poetry for Christmas | GeoffC | Writers' Corner | 2 | 12-04-2009 04:26 AM |
Got POETRY? | Dr. Drib | Writers' Corner | 36 | 04-02-2009 11:18 AM |
Poetry recommendations? | ficbot | Reading Recommendations | 1 | 03-14-2009 12:19 PM |