View Single Post
Old 11-27-2025, 07:12 AM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 82,974
Karma: 153234783
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by hobnail View Post
Just like any other tag, you can style it with css.

Code:
article {
    font-family: sans-serif;
}
If you want it to act like a div, add display:block.

Code:
article {
    font-family: sans-serif;
    display: block;
}
Don't do this. It may not be backwards compatible. Make a proper div and use that for any styling. For example, a number of Reader (including Kobo) use an older version of RMSDK. So if someone goes to read the ePub with the older RMSDK, then it may not work. You have to code for old software when possible when you don't know what will be used to read the eBook. It's only when you can't code for backward comparability is it OK to do something more modern.
JSWolf is online now   Reply With Quote