View Single Post
Old 03-16-2015, 09:44 PM   #6
Gregg Bell
Gregg Bell
Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.Gregg Bell ought to be getting tired of karma fortunes by now.
 
Gregg Bell's Avatar
 
Posts: 2,266
Karma: 3917598
Join Date: Jan 2013
Location: Itasca, Illinois
Device: Kindle Touch 7, Sony PRS300, Fire HD8 Tablet
Quote:
Originally Posted by JSWolf View Post
Can you post the code in the cover XML along with any relevant CSS code? Also, how large is the cover and did you do anything to the cover like optimize it?
Thanks JS. Here's the cover xml:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

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

<body>
<div style="text-align: center; padding: 0pt; margin: 0pt;">
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 1600 2400" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
<image height="2400" width="1600" xlink:href="../Images/TheTest_1600x2400%28max-12%29.jpg"></image>
</svg>
</div>
</body>
</html>

As you can see the cover is 1600X2400 and I don't know if it's optimized or not. (A friend worked this up.)

Here's the CSS code:

Spoiler:
@namespace "http://www.w3.org/1999/xhtml";
@page {
margin-top: 1em;
margin-bottom: 1em;
}

h1, h2, h3, h4 {
text-align: center;
text-indent: 0;
}

blockquote {
margin-top: 1em;
margin-bottom: 1em;
margin-left: 10%;
margin-right: 10%;
}

.margintop {
margin-top: 1em;
}

.right {
text-indent: 0;
text-align: right;
}

.center {
text-indent: 0;
text-align: center;
}

/*This book only CSS*/

p {
text-indent: 1.5em;
margin-top: 0em;
margin-right: 0em;
margin-bottom: 0em;
margin-left: 0em;
text-align: left;
}

p.first {
text-indent: 0;
}

span.smallcaps {
font-size: .9em;
}

p.asterisks {
margin-top: 1em;
margin-bottom: 1em;
text-indent: 0;
text-align: center;
}

/*Title Page Only CSS*/

.paddingtop {
padding-top: 1em;
}

.bigmargintop {
margin-top: 2em;
}

/*Table of Contents Only CSS*/

.tocone {
text-indent: -2em;
margin-left: 2em;
}
Gregg Bell is offline   Reply With Quote