Quote:
Originally Posted by rogue_ronin
|
Well, the pseudo-elements are not listed in the
ePUB spec either.
Quote:
'course, I'm not exactly shooting for ePub.
|
Right, but it's goodo to know what is and isn't supported, I guess.
Quote:
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.
|
Hmm... I think you'd have to add some specific css for browsers showing a bottom border.
Note that, apparently, vertical space must be discarded after a pagebreak. So that, if you have a <hX> after a pagebreak, no matter how much margin-top you assign it, it will be flushed to the top of the page (or so it should). To avoid this, I had to add manual pagebreaks:
Code:
<div class="pagebreak"> </div>
div.pagebreak {
page-break-before: always;
height: 0;
padding: 0
}
... and I could change the css for browsers:
Code:
div.pagebreak {
border: dashed;
border-width: 1px 0 0 0;
margin: 0 -2.05% 0 -2.05%;
}