View Single Post
Old 07-17-2009, 08:59 AM   #16
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 rogue_ronin View Post
So, make <br class="SceneBreak" /> and <br class="PageBreak" /> and add something like this to CSS:

Code:
br.SceneBreak {
display:none;
}

br.SceneBreak:after {
content:"* * *";
text-align:center
}

br.PageBreak {
display:none;
}

br.PageBreak {
page-break-after:always;
}
'course, it didn't quite work! The display:none kills the other effects, so that has to go. (Isn't it fun to watch the silly noob? )

But the page-break-after:always for the PageBreak class works a treat. The only drawback is that you won't get a horizontal rule when you insert a manual page-break that would be visible in a normal browser. You do get a blank line. Since I'm drawing a bottom-border on my divs that page-break, I think I'm going back to the hr for this one.

On the other hand, a blank line is great for a scene-break; but I don't seem to be able to generate the content "* * *" -- or any other content.

Here's what's in the CSS now:

Code:
br.SceneBreak:after {
content:"* * *";
}
Why won't the asterisks show up when I insert a <br class="SceneBreak" /> to the xHTML?

m a r
rogue_ronin is offline   Reply With Quote