View Single Post
Old 05-12-2021, 05:05 PM   #8
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,084
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by hobnail View Post
If necessary you could open the epub in Calibre's editor and delete the css file. There might be class= stuff in the html but they won't have any effect since there isn't a css file.
You do know that you can define classes in the html files? Not to mention some people's unnatural love for in-line styles? The code block is a sample from a Randy Penguin ebook's next read blurb.

Code:
  <style>
			@font-face {font-family: 'Shift Light'; font-style: normal; font-weight: bold; src: url('../Fonts/Shift-Bold.otf');}
			@font-face {font-family: 'Shift Light'; font-style: italic; font-weight: bold; src: url('../Fonts/Shift-BoldItalic.otf');}
			div {margin: 0; padding: 0; line-height: inherit; text-indent: 0;}
			h1 {font-size: 1.5em; text-align: center; margin: 0 0 1em 0; font-weight: bold; font-style: italic; line-height: inherit; text-indent: 0; font-family: 'Shift Light', Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', Georgia, serif;}
			p {text-align: center; text-indent: 0; margin: 1em 0 0 0; font-family: 'Shift Light', Palatino, 'Palatino Linotype', 'Palatino LT STD', 'Book Antiqua', Georgia, serif;}
			.center{text-align: center;}
			.x-small {font-weight: bold; font-size: 1em; margin: 0; padding: 0;}
			.image_h12{font-size: 1em; height: 12em; max-width: 100%;}
			a, a:link, a:visited, a:hover, a:active {font-weight: bold; font-size: 1.2em; color: #fa6400; text-decoration: underline;}
			.rule {font-size: 1em; margin: 1.2em 5% 0 5%; border-top: 1px solid #636363;}
		</style>

Last edited by DNSB; 05-12-2021 at 05:09 PM.
DNSB is offline   Reply With Quote