View Single Post
Old 08-21-2017, 10:50 PM   #15
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,233
Karma: 35158061
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
@Chris Jones --- Query --- do you intend for this "template" to be used for *actual recipes*?

You might consider using <dl> definition list ---- use your ingredient name as the <dt> "term" and the quantities as the <dd> "definition" --- definition is offset like a hanging indent. You can experiment a lot with the formatting.

I don't think you have to be married to a print-style layout, as long as the information is clearly displayed. Dot leaders are a sink-hole in reflowable epub, as you are discovering. Too many ways for the swamp to suck them down....

EDIT TO ADD :

A rough idea--- this is with the "ingredients" centered. You might otherwise go with a fairly wide left margin for those.

CSS:
Code:
.acentr dl, .acentr .header
{
text-indent: 0;
text-align: center;
}

.header 
{
font-size: 1.3em;
font-weight: bold;
}

.instr
{
/* whatever paragraph layout desired */
}

dl
{
/* margin-left: 1em; */
/* margin not wanted if centering text */
}

dt
{
margin-top: .75em;
font-weight: bold;
}

dd
{
margin-left: 3em;
}

HTML:

Code:
<div class="acentr">

<p class="header">I. Dark and stormy night.</p>

<dl>

  <dt>Dark</dt>

    <dd>1 tsp.</dd>

  <dt>Storm</dt>

    <dd>16 oz.</dd>

  <dt>Rain</dt>

    <dd>5 qts.</dd>

<dt>Torrents</dt>

<dd>3 ea.</dd>

</dl>
</div>

<p>It was a dark and stormy night; the rain fell in (3)
 torrents except at occasional intervals, when it 
 was checked by a violent gust of wind which 
 swept up the streets…</p>
Attached Thumbnails
Click image for larger version

Name:	RECIPE.png
Views:	204
Size:	16.9 KB
ID:	158611  

Last edited by GrannyGrump; 08-21-2017 at 11:51 PM. Reason: add code
GrannyGrump is offline   Reply With Quote