View Single Post
Old 09-15-2021, 03:26 PM   #1
pete6055
Connoisseur
pete6055 began at the beginning.
 
Posts: 74
Karma: 10
Join Date: Nov 2012
Device: none
Coverpage Background Color

I'm new to the calibre epub viewer.

Why doesn't the code below create the coverpage background color in the calibre epub viewer (ver 5.27)?
***

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title>Cover</title>
</head>

<body style="text-align: center; padding: 0pt; margin: 0pt;">
<div style="background-color: #090909;">
<img alt="cover" src="../Images/cover.jpeg"/>
</div>
</body>
</html>
***

I see the color section of Preferences might be used, but I only want the background to apply to the cover. Linking to a stylesheet doesn't appear to work either. The background remains White.

Thanks for your help.
pete6055 is offline   Reply With Quote