Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 10-25-2010, 04:43 AM   #1
Rand Brittain
Bookmaker
Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.
 
Posts: 236
Karma: 9102
Join Date: Sep 2010
Device: Cybook Opus
Breaks after Chapter Titles

I've been cleaning up some EPUBs for use on my Reader, and I've hit a weird issue with my CSS. I've inserted a page break after my chapter headings, and the space shows up fine in Calibre's reader, but on my PRS-350 and on my Bookeen Opus, the break does not appear and there is no space between the heading and the first paragraph.

This is the first part of the chapter:

Code:
<h3 id="heading_id_4"><a id="chapter_1"></a>1: <span class="italic">Damp Dynamite</span></h3>

  <div class="break">
    <br />
  </div>

  <p>The story of the little man...</p>
And this is my stylesheet:

Code:
@page {
	margin-top: 0.25em;
	margin-bottom: 0.25em;
}

body {
	display: block;
	text-align: justify;
}

p {
	text-indent: 2em;
	margin-top: 0;
	margin-bottom: 0.25em;
}

h1, h2, h3, h4, h5 {
	text-align: center;
	text-indent: 0;
}

p.missive {
	margin-left: 1em;
	margin-right: 1em;
	text-indent: 0em;
}

p.missive-indent {
	margin-left: 1em;
	margin-right: 1em;
	text-indent: 2em;
}

.center {
	text-align: center;
}

.italic {
	font-style: italic;
}

.bold {
	font-weight: bold;
}

.small-caps {
	font-variant: small-caps;
	}

.right {
	text-align: right;
	}

blockquote {
	margin-left: 1em;
	margin-right: 1em;
	text-indent: 0;
	}

.break {
	margin-bottom: 1em;
	}
Any idea of what might be causing this problem?
Rand Brittain is online now   Reply With Quote
Old 10-25-2010, 05:08 AM   #2
Rand Brittain
Bookmaker
Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.Rand Brittain can eat soup with a fork.
 
Posts: 236
Karma: 9102
Join Date: Sep 2010
Device: Cybook Opus
Hm, using <p>&nbsp;</p> in place of <p><br /></p> seems to get better results. Not sure why.
Rand Brittain is online now   Reply With Quote
Old 10-25-2010, 01:53 PM   #3
jswinden
Astrophotographer
jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.jswinden ought to be getting tired of karma fortunes by now.
 
jswinden's Avatar
 
Posts: 5,499
Karma: 6981326
Join Date: Sep 2006
Location: USA
Device: iPad Mini 2, iPhone 5, Nexus 7.2
Using <div class="break"> <br /> </div> is like inserting air. There is literally nothing for the screen to display. Using <p>&nbsp;</p> inserts a non-breaking space. Some html browsers and ebook reader browsers will ignore air like your first example.

On another note, you can use H1 and I think even H2 tags without all that CSS gibberish to create a page break.
jswinden is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ebook chapter titles: with or without chapter number? amoroso Writers' Corner 16 06-14-2011 07:35 AM
Calibre making unwanted chapter breaks PatNY Calibre 6 10-08-2010 10:58 PM
Automating splitting at Chapter Breaks John Everett Sigil 9 06-01-2010 03:53 AM
Help w/ Chapter Breaks pastorjamie Calibre 1 02-25-2010 08:30 PM
Adding chapter breaks by number of pages/lines raptir Calibre 8 10-22-2009 01:11 PM


All times are GMT -4. The time now is 01:35 PM.


MobileRead.com is a privately owned, operated and funded community.