View Single Post
Old 05-23-2021, 12:23 PM   #69
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,363
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
For full clarity - since the post you referenced was so old -

I also use the <hr/> to denote scene breaks. Apparently, that is the standard for assistive technology to determine scene breaks (or at least it was when I read the article last year...)
It is possible to fancy-up the <hr> to include a fleuron, or asterisks, not just a horizontal line:

Code:
HTML:
<hr class="ChDiv"/>

CSS:
hr.ChDiv {
  border: none; 
  margin: 1.25em auto; 
  height: .5em;
  background: transparent url("../Images/fleur.gif") no-repeat center;
  background-size: auto 100%;
  overflow: hidden;
  page-break-inside: avoid;
  break-inside: avoid;
}
The margin can be adjusted as necessary to complement the image size.

The height can be switched to "width" (with corresponding switch in background size) to accommodate taller vs. wider fleurs.
eg.
width: 3em;
background-size: 100% auto;

You can also include strings if you like:

Code:
hr.ChDiv {
  margin: 1.5em 0; 
  text-align: center; 
  letter-spacing: 1em;
  height:1em; 
  border:none; 
  background-color:transparent}

hr.ChDiv:before {content: "***"}
-or-
hr.ChDiv:before {content: "•••"}
or even MORE fancy: (taken from MDN webdocs)

Code:
hr.ChDiv {
    border: none;
    border-top: 3px double #333;
    color: #333;
    overflow: visible;
    text-align: center;
    height: 5px;
}

hr.ChDiv:after {
    background: #fff;
    content: '§';
    padding: 0 4px;
    position: relative;
    top: -13px;
}
Be careful though, some older devices might not support the "content" option for use of strings... it seems to work fine on my ePub 2 books. YMMV
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2021-05-23 121919.png
Views:	368
Size:	212.1 KB
ID:	187288  

Last edited by Turtle91; 05-23-2021 at 12:26 PM.
Turtle91 is offline   Reply With Quote