Thread: about poetry
View Single Post
Old 07-11-2018, 07:25 AM   #11
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Well, this is what I decided to use.
Each verse has its own paragraph style (Chanson) and the stanza is kept within a div (space) tag. As the length of the verses is variable, I could not find a perfect solution and had to compromise. I tried this one on a six inches screen, it should possibly be better on wider ones, and dubious on smartphones.

I made use of a negative indent which seems to be correctly supported for ePub and PDF. A screenshot is joined. No idea for others (hello Hitch!).

Code:
p {
  display: block;
  margin-top: 0;
  margin-bottom: 0;
  border: none;
  padding: 0;
  text-indent: 1.5em;
  text-align: justify;
  widows: 2;
  orphans: 2;
}
p.Chanson {
  margin-left: 70%;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  border: none;
  padding: 0;
  text-indent: -65%;
  text-align: justify;
  font-style: italic;
}
.space {
  margin-top: 12px;
  margin-bottom: 12px;
}
Attached Thumbnails
Click image for larger version

Name:	poetry2.png
Views:	196
Size:	18.1 KB
ID:	164986  

Last edited by roger64; 07-11-2018 at 07:28 AM.
roger64 is offline   Reply With Quote