View Single Post
Old 01-09-2014, 11:32 AM   #45
Liliann
Member
Liliann began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Dec 2013
Device: none
Quote:
Originally Posted by Rev. Bob View Post
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
Liliann is offline   Reply With Quote