Thread: Kobo Bug thread
View Single Post
Old 02-27-2017, 10:05 PM   #836
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: 46,597
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Of all the eBooks I've looked at the code, I've never seen !important or have I ever used it. I see no reason for it.
I've seen !important used in 3 ebooks. I would agree with Rev. Bob that it was unnecessary. In the case of one ebook, it had 8 stylesheets (one for the cover page, one for the titlepage, one for chapters, one for table of contents, one that was basically pagestyles.css and a couple of more for miscellaneous content. The 8th stylesheet which had the !importants was used to try to cover the sins of commision and omission in the other 7 -- lipstick on a pig.

It took about 40 minutes to convert the stylesheets into a single stylesheet, get rid of multiple repeated images -- did we really need the identical graphics for the chapter title repeated for each chapter, convert absolute sizes into relative sizes and otherwise clean things up.
DNSB is offline   Reply With Quote