View Single Post
Old 05-11-2015, 05:58 AM   #120
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,553
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Quote:
Originally Posted by Joques View Post
Murg, is there an easy way to add text/graphics/asterisks to scene breaks using CSS? I'm guessing no, or it would have been mentioned already
Yes there is. I don't know how well supported it is but you can use the ::before pseudo element and content property

Code:
p.scene-break::before 
{
    content: "***";
    display: block;
    text-align: center
}
p.scene-break { text-indent:0 }
Content can be an img url. No html though. I haven't actually tried this so I don't know if it is correct or how well it is supported.

This seems like /a/ correct and elegant way to do this to me.

Last edited by Barty; 05-11-2015 at 06:01 AM.
Barty is offline   Reply With Quote