View Single Post
Old 07-16-2009, 03:49 AM   #8
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
Quote:
Originally Posted by Jellby View Post
I think those pseudo-elements are not supported in ePUB, so beware.
According to this popular page the limitation seems to be ADE, not ePub:

Code:
(ADE 1.0 doesn't support:

    * pseudo-classes/elements
    * text-align: justify;
    * font-variant: small-caps;
    * OPS extras:
          o display: oeb-page-head;
          o display: oeb-page-foot;
          o oeb-column-number: [integer]; )
'course, I'm not exactly shooting for ePub.

Quote:
It matches a p immediately following an h4 contained inside a div.body. The + is the "adjacent sibling" selector (other selectors here).
Done some reading now, and I get it, I think. Headings don't contain paragraphs, so the best you can do is look for nearness. If there is even an img or hr then no good.

Thanks for helping!

What is the good ol' CSS way to make a horizontal rule? In my current CSS, I've added page-break-after to all my divs, which works as expected in print preview -- but I'd love to add a visible rule for normal browsers, which don't break the page.

Am I right in thinking that hr is a formatting tag?

m a r
rogue_ronin is offline   Reply With Quote