Thread: ePUB weight
View Single Post
Old 03-01-2015, 07:22 PM   #42
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by PeterT View Post
In the ongoing goal of using at much from the style sheet as you can, I see numerous occurences of
Code:
<p class="center" style="margin-top: 1em; margin-bottom: 1em">* * *</p>
as a break.

Why not add a new class and then just code [code]<p class="break" >* * *</p>
Or if you really want to go all the way:

Code:
<div class="section">Entire section contents go here.</div>
and then add:

Code:
.section + .section::before {
  display: block;
  text-align: center;
  margin-top: 1em; 
  margin-bottom: 1em;
  content: "* * *";
}


Unless, of course, you're also targeting Kindle, in which case kindlegen will barf when producing the MOBI content. Once again, the lowest of lowest common denominators ruins things for everybody.... *sigh*
dgatwood is offline   Reply With Quote