View Single Post
Old 04-12-2016, 05:03 AM   #3
bentleymaniac
Enthusiast
bentleymaniac began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
Thanks. I may have accidentally come across a solution. I have yet to check it on an ereader, but it displays correctly (except for an extra page break after an image)

here's what I did:
css
Code:
p {
	font-family:"Book Antiqua";
	src: url("../Fonts/BookAntiqua.TTF") format("truetype");
	font-size:1.2em;
	text-indent:1.2em;
	margin-top:0px;
	margin-bottom:0px;
	text-align:justify;
}
p.ni {
	text-indent:0em;
}

div.inline {
	height:99%;
	width:100%;
	page-break-inside:avoid;
	text-align:center;
}

div.inline
	img {
		display:inline-block;
		height:auto;
		max-height:100%;
		width:auto;
		max-width:100%;
		margin:0 0;
	}
html

Code:
<body>
<p>Shoie, a thoughtful look on his face, turned the knob and walked into Alvin's bedroom. At least he <i>started</i> in. The act of opening the door triggered Alvin's Foolproof Burglar Alarm. A boxing glove packed with stones, mounted on a short section of two-by-four, came whipping through the air. It was powered by a screen-door spring. At the last moment Shoie suddenly remembered the Burglar Alarm — he'd been caught by it countless times before - and tried to duck. He was too late. The boxing glove struck him smack on the nose, and he went reeling back into Alvin's arms, while a loud bell clanged and the lights in the room flashed on and off.</p>

<div class="inline">
	<img alt="Image_02" src="../Images/Image_02.png"/>
</div>

<p>Daphne put her hand to her mouth and giggled. Her golden pigtails shook. "Shoie, I swear you'll <i>never</i> remember that dumb boxing glove that Alvin put up as a burglar alarm. I'll bet you've been hit by that thing fifty zillion times. Tomorrow you'll come up here and walk right into it again."</p>
</body>
(from "Alvin Fernald, TV Anchorman", by Clifford B. Hicks - a public domain book which I am converting from hard copy to epub)



any ways of making the code more efficient wouuld be handy.
bentleymaniac is offline   Reply With Quote