Quote:
Originally Posted by Peter Sorotokin
I think you'd have hard time doing it with CSS2. You need either media queries (will be there in EPUB3, may already be there in iBooks) or XPGT (Adobe-specific extension).
Personally, I do these sort of pages (covers, title pages, etc) with SVG scaled to fit to exactly one page. Otherwise you have to invent yet another CSS layout strategy for any new layout.
|
Sounds like I have to add this layout to my continuously growing list of "impossibilities with ePub"

and hope that EPUB3 will be around soon.
You say that I could use XPGT and that you use SVG. What is the difference between SVG and XPGT? I know that there exists an adobe-specific stylesheet called page-template.xpgt, but have never used it because I like to specify my own stylesheets in CSS. I have tried to read the file, but didn't understand much of it. Any tips to sites where I can find any documentation and syntax for the page-template?
As for SVG, if I understand correctly, SVG contents will only be visible in adobe and invisible in all other viewers?
Quote:
Originally Posted by pdurrant
When I've done title pages in a similar way, I've set the height (not min-height) of the different sections. That way the title page always fits on one screen, and you don't have the text wrapping problem.
Instead, you get text overlapping then the font gets too big for the page size.
|
I chose to set the min-height because I wanted the divs to resize when the contents grew to avoid overlapping texts, but if the cost of that is that some of the text will disappear, I think I prefer your solution. Or maybe I just stick to Jellbys idea to use a fix height between the various sections. That solution has several disadvantages, the most severe of them is that a margin set in em will increase with increasing font sizes, whereas I would like the margin to decrease (in order to give room for the growing content) or at least be constant (not require any more room than it already does). Any ideas to a unit that does not increase with increasing font-sizes and looks reasonable(TM) in most reading devices and independent of screen size and resolution?