View Single Post
Old 09-23-2012, 05:19 PM   #10
Jorge Junior
Member
Jorge Junior began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Sep 2012
Location: Rio de Janeiro - Brasil
Device: Genesis GT-1230
Quote:
Originally Posted by Jorge Junior View Post
Does it mean I'll loose all the italics and colored letters?
I finally did it.
I wrote the text in Dreamweaver, saved as html and opened the html in Sigil.
Now all the italics and colored letters were preserved in the epub and I can change the font size using the e-reader options.

But now I have another problem. The cover book is perfect on my 10' tablet, but when I open it on a 7' screeen, the cover does not fit.

This is the code of the xhtml containing the cover image. What must I include so that the image always fits perfectly, no matter the size of the e-reader screen?

<?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" xml:lang="en" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<head>
<title>Cover</title>
<style type="text/css">
/*<![CDATA[*/

@page {padding: 0pt; margin:0pt}
body { text-align: center; padding:0pt; margin: 0pt; }
/*]]>*/
</style>
</head>

<body>
<div>
<img alt="" src="../Images/cover.jpg" /><br />
</div>
</body>
</html>
Jorge Junior is offline   Reply With Quote