View Single Post
Old 01-03-2019, 05:58 PM   #1
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
changing text-align: justified to left

I've downloaded a bunch of books from project gutenberg and some have a stylesheet/css file that contains

body {
margin: 5%;
background: #faebd0;
text-align: justified
}

Others don't have a text-align in the body section.

I prefer a ragged-right margin. If I append the following to the css file that should do it.

body {
text-align: left;
}

That seems like the simplest solution. Or, to every .html file that's the body of the book add before the closing </head> tag the following.

<style>
body {text-align: left;}
</style>

What's the best way to get ragged right if there is a better way than my above two ideas, and if appending to the css file is a good way, how can I do that automatically when I add books to my library?
lumpynose is offline   Reply With Quote