View Single Post
Old 05-30-2023, 04:47 PM   #34
graycyn
Wizard
graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.graycyn ought to be getting tired of karma fortunes by now.
 
Posts: 1,591
Karma: 11722446
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
Quote:
Originally Posted by JSWolf View Post
ePub 3 introduced some code that was not needed that makes it no as compatible with older software as it should be. Things like <figure> when <div works perfectly well. hv/vw when % works perfectly well. And others.
Presuming the older software understands CSS, then <figure> and other HTML5 block elements work fine if you style them with display: block;.

Code:
/* HTML5 block tags defined for legacy reading systems. */
article,aside,figcaption,figure,footer,header,main,nav,section {
  display: block;
}
You can then add whatever additional styling you might need as desired. Like making <figcaption> a smaller font size, or italicized, or adding margins, etc...
graycyn is offline   Reply With Quote