Quote:
Originally Posted by Rev. Bob
Now that my winter break is over and I'm back at that PC, here's the code I use for a "tall and narrow" cover page with a black background:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
<head>
<title>Cover</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
@page { margin: 0; padding: 0; }
body, div { margin: 0; padding: 0; }
body { background-color: #000000; color: #ffffff; }
div { text-align: center; page-break-after: always; }
img { height: 100%; max-width: 100%; }
</style>
</head>
<body><div>
<img alt="Cover" title="Cover" src="cover.jpeg"/>
</div></body>
</html>
This should work unaltered for a calibre-generated cover page; otherwise, you'll probably have to change the filename in red.
|
unfortunately these properties do the same :/
and I kinda gave up with Kobo...it works well in iBooks and it seems enough for now
thank you for all of your effort