View Single Post
Old 11-09-2023, 02:03 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,125
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by azimuth View Post
Mmm...that Moon+ eReader again; it's a quality product, yet can create fickle CSS code challenges sometimes.
Perhaps if you like a product that by default disregards the ebook's style and has rather spotty support for the ePub specification.

Quote:
Originally Posted by azimuth View Post
The figure/figcaption is effective for both epub2x and epub3x. Something like this could work (which makes your question lean more toward CSS flex). The 'flex' is for epub3x only, but a figure/figcaption can be designed without it.
Last time I looked, figure & figcaption were ePub 3 only. I tried a test epub2 with figure/figcaption


Code:
<body>
  <figure role="group">
    <img alt="Figure 1" src="../Images/00003.jpeg"/>

    <figcaption>A water molecule is made of two hydrogen atoms and one oxygen atom. The two hydrogen atoms are positioned on the oxygen atom and are separated by approximately 105 degrees.</figcaption>
  </figure>
</body>
Spoiler:
and epubcheck was not happy.

Code:
OEBPS/Text/Section0001.xhtml	17	531	Col: 8: ERROR(RSC-005): Error while parsing file: element "body" incomplete; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")
OEBPS/Text/Section0001.xhtml	12	255	Col: 24: ERROR(RSC-005): Error while parsing file: element "figure" not allowed anywhere; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")
OEBPS/Text/Section0001.xhtml	13	308	Col: 53: ERROR(RSC-005): Error while parsing file: element "figure" not allowed anywhere; expected element "address", "blockquote", "del", "div", "dl", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ins", "noscript", "ns:svg", "ol", "p", "pre", "script", "table" or "ul" (with xmlns:ns="http://www.w3.org/2000/svg")
DNSB is offline   Reply With Quote