[FM Discuss] booki mobile makes its first trip

Rebecca Hargrave Malamud webchick at invisible.net
Thu Nov 11 09:15:07 PST 2010


> rebecca - do you have an example css i could try?

Sure - this is what I used on our "Teacher's Survival Kit" edition of  
James Simmon's "E-Book Enlightenment"

This snippet also adds the book title, page number and chapter heads  
to the header and footer  -

--------------------------------------------------------------------------------
@page:right {margin-left:.75in;margin-right:0.4in;
    @bottom-left {
	content: string(doctitle);
    }
    @bottom-right {
    content: counter(page);
    }
    @top-right {
	content: "E-Book Enlightenment";
    }
}
@page:left {margin-left:0.4in;margin-right:.75in;
    @bottom-right {
	content: string(doctitle);
    }
    @bottom-left {
    content: counter(page);
    }
    @top-left {
	content: "E-Book Enlightenment";
    }

}

@page {
  size: us-letter portrait;
  border: 0;
  margin-top: 0.75in;
  margin-bottom: 0.75in;
}

--------------------------------------------------------------------------------

You may recall, we used PrinceXML to generate the final PDF (which we  
exported from Sigil as individual XHTML files for each chapter which  
generates the doctitle), but the gutter for page:right and page:left  
gutter should definitely work in OBJAVI.

Good luck from #rdcHQ!

Rebecca




More information about the Discuss mailing list