Hi
I'm working with a poetry book that shall be published both as epub and pdf. For the pdf edition I hope to go for a traditional fixed layout, but need a more re-flowable layout for the epub since it's impossible to design epubs for fixed screen dimensions.
In my html file, I have a lot of verses in this form:
The <p> is indented, and I would like to generate a pdf output that justifies all the lines except the last one.
With this css code:
I get the layout I want except for the justification of the lines. It's the <br/> that's the culprit.
With this css code:
I get justification on all lines, including the last one. The last one is a lot shorter than the other lines, and full justification on this line looks rediculous. Is there a way to get full justification on all lines except the last one using just css? I'm going to re-use the html code for the epub and publication on net, so I would like not to change the html code dramatically.
I'm working with a poetry book that shall be published both as epub and pdf. For the pdf edition I hope to go for a traditional fixed layout, but need a more re-flowable layout for the epub since it's impossible to design epubs for fixed screen dimensions.
In my html file, I have a lot of verses in this form:
<p>This is line 1 and it's indented<br/>
This is line 2<br/>
This is line 3 and it's a long line</br>
Line 4</p>
The <p> is indented, and I would like to generate a pdf output that justifies all the lines except the last one.
With this css code:
p{
margin:0;
text-indent:1.2em;
text-align:justify;
}
I get the layout I want except for the justification of the lines. It's the <br/> that's the culprit.
With this css code:
p{
margin:0;
text-indent:1.2em;
text-align:justify;
text-align-last:justify;
text-justify:distribute;
}
I get justification on all lines, including the last one. The last one is a lot shorter than the other lines, and full justification on this line looks rediculous. Is there a way to get full justification on all lines except the last one using just css? I'm going to re-use the html code for the epub and publication on net, so I would like not to change the html code dramatically.