View Single Post
Old 02-14-2017, 09:07 PM   #26
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,363
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
May I add some recommendations in addition to Diap's corrections?? I cringe every time I see how bloated with calibre classes some books get. Most of them are unnecessary.

- Please do not use a class to describe your predominant <p> styling
- Please do not use a class to describe your <i> and <b> tags unless they are something other than the standard italics and bold
- Please do not use empty paragraph tags (<p class="calibre69"> </p>) to create a space between items/paragraphs

Instead, simply define the style for the standard <p>/<i>/<b> tags in your css and leave classes for those that are non-standard, and use classes to give extra spacing between the paragraphs that need it:

Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
   <title></title>
   <link href="../Styles/styles.css" type="text/css" rel="stylesheet"/>
</head>

<body>

  <div><img alt="" src="index-1_1.png" /></div>

  <h3 id="u3pAA2rri29VOAmDQCbdKx9">Impressum</h3>

  <p><b>Jeppe Aakjær</b></p>

  <p><i><b>Die Kinder des Zorns</b></i></p>

  <p><i><b>ngiyaw eBooks</b></i></p>

  <p class="space">Übertragen von Erich Holm, Pseudonym von Mathilde Prager<br/>Georg Merseburger, Leipzig, 1912</p>

  <p class="space"><i>ngiyaw</i> eBooks werden Ihnen <i>as-is</i> ohne irgendwelche Garantien und Gewährleistungen angeboten.</p>

  <p>© 2007 Peter M. Sporer für <i>ngiyaw</i> eBooks.</p>

  <p>Földvári u. 18, H – 5093 Vezseny<a href="mailto:ebooks@ngiyaw-ebooks.de">(ebooks@ngiyaw-ebooks.de).</a></p>

  <p>Erstellt mit Corel Ventura 10, das die Corel Deutschland GmbH freundlich zur Verfügung gestellt hat.</p>

  <p>Gesetzt in der Baskerville Book.</p>

</body>

</html>
with the following CSS:

Code:
html, body {height:100%; font-family:serif} (or whatever)
body {font-size:100%; margin:0; padding:0; font-weight:normal} (or whatever)

h3 {font-weight:bold; text-align:center; font-size: 1.2em}
p  {whatever styling you want your standard (98% of the book) paragraph}
i  {font-style:italic}
b  {font-weight:bold}

p.space {margin-top:2em}
div img {max-width:100%} (or whatever styling you want for that image)
These, of course, are only recommendations - they are in no way meant to imply a requirement.

Cheers,
Turtle91 is offline   Reply With Quote