View Single Post
Old 10-29-2023, 11:49 PM   #5
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,827
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Lukusaukko View Post
The title is the question. I'd like to format a block of text so that if I resize the window on a desktop, resize the text, or view on device with different line length, the second line would indent itself, so it would be obvious that the line wraps.
Why don't use simply :

Code:
p.neg_indent {
  margin: 2em; /* of course, you can write here another value */
  text-indent: -2em; /* of course, you can write here another value */
  line-height: 1.2em;
}
By the way, with JS you can get a nice layout for poetry:

https://www.mobileread.com/forums/sh...29&postcount=5

Of course JS is only for epub3.

Regards

Last edited by RbnJrg; 10-30-2023 at 12:45 AM.
RbnJrg is offline   Reply With Quote