Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2011, 03:08 PM   #1
Copycat
Junior Member
Copycat began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2011
Device: none
image and white margins

Hi all, i have problem with cover image, iam using cs5 for epub, and ADD is allways showing white margins (top and left side) i cant remove it, when i put epub in sigil and put image from it i have same problem in ADD.. image is 600x800...


xhtml code:

<?xml version="1.0"?>
<!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>cove_page.xhtml</title>
<link href="../Styles/template.css" rel="stylesheet" type="text/css" />
</head>

<body style="">
<div id="cove-page">
<div class="generated-style"><img alt="global.png" src="../Images/global_fmt.jpeg" /></div>
</div>
</body>
</html>


is there any solution with margins?
thanks in advance
Attached Thumbnails
Click image for larger version

Name:	printscr.JPG
Views:	91
Size:	83.5 KB
ID:	69921  
Copycat is offline   Reply With Quote
Old 04-14-2011, 03:18 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,612
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Copycat View Post
Hi all, i have problem with cover image, iam using cs5 for epub, and ADD is allways showing white margins (top and left side) i cant remove it, when i put epub in sigil and put image from it i have same problem in ADD.. image is 600x800...


xhtml code:

<?xml version="1.0"?>
<!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>cove_page.xhtml</title>
<link href="../Styles/template.css" rel="stylesheet" type="text/css" />
</head>

<body style="">
<div id="cove-page">
<div class="generated-style"><img alt="global.png" src="../Images/global_fmt.jpeg" /></div>
</div>
</body>
</html>


is there any solution with margins?
thanks in advance
If you don't set them, device defaults prevail.
You have no body style declared

"generated-style " is an unknown
Your background color is the default white making any issue obvious
do yo want the aspect ratio distorted or maintained
IMHO testing margins on a display with a hugely different aspect ratio is questionable
theducks is offline   Reply With Quote
 
Enthusiast
Old 04-14-2011, 03:50 PM   #3
Copycat
Junior Member
Copycat began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2011
Device: none
hmm, my knowledge of html is very small
can you tell me what to do?
i dont now to set body style, or anything in code, thats why i need help in that.
if its not to complicated to do
Copycat is offline   Reply With Quote
Old 04-14-2011, 04:12 PM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,612
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Copycat View Post
hmm, my knowledge of html is very small
can you tell me what to do?
i dont now to set body style, or anything in code, thats why i need help in that.
if its not to complicated to do
Reverse engineer one (a book/page) you like
That is what I did a little over a year ago. I had never used a stylesheet and my previous HTML was 2.x

This is my 'standard' I use from Calibre (This is <body class="calibre"> that wotks with ADE on my 5" reader (The wider Right is so the Adobe 'page' numbers don't mush into the text)

Code:
.calibre {
    display: block;
    font-size: 1.2em;
    margin-bottom: 0;
    margin-left: 2pt;
    margin-right: 16pt;
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    page-break-before: always
    }
theducks is offline   Reply With Quote
Old 04-15-2011, 04:16 AM   #5
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,955
Karma: 3363559
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
on the epub part of the forum there is a thread (I believe the CSS tip thread) where there is more about covers. In there the complete code is given for a cover page which will size the cover to be 800x600, but maintaining ratio. It is in a svg wrapper. I will try to look it up.

Found it: link

I always use this as my coverpage, with my own small adjustments. But, it will work as said.

Last edited by Toxaris; 04-15-2011 at 04:19 AM.
Toxaris is offline   Reply With Quote
Old 04-15-2011, 05:10 AM   #6
Copycat
Junior Member
Copycat began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2011
Device: none
thanks a lot guys, will try this..
Copycat is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Good AI Autocropper - "VeryDOC PDF White Margins Removal" 3rd PDF 6 11-28-2010 08:37 AM
Any good app for removing white margins of pdf? hupple Amazon Kindle 4 10-17-2010 05:22 PM
Stripping white margins from PDFs doreenjoy Workshop 15 06-19-2009 03:14 AM
Horror White, Frederick M.: The Great White Moth v1 23 apr 2009 mtravellerh ePub Books 0 04-23-2009 06:06 AM
Horror White, Fred Merrick: The Four White Days. V1. 7 Dec 2008 crutledge IMP Books 0 12-07-2008 12:12 PM


All times are GMT -4. The time now is 05:41 AM.


MobileRead.com is a privately owned, operated and funded community.