View Single Post
Old 09-30-2010, 04:37 PM   #39
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
Quote:
Originally Posted by DTM View Post

One thing you should know, however, is that you're not supposed to have a space after the colon in the declarations. I don't know if that makes a difference in Stanza, but it does in some rendering software.
The overwhelming majority of css sheets I've looked at all have a space after the colon. That includes the css for this particular book for which I can't get the dedication centered. The book is by Random House/Delacorte press and it's very professionally formatted and designed. So I think they use designers with knowledge of css sheets and html code.

At any rate, I went into the css stylesheet and closed up the space. It made no difference. Stanza still won't center the dedication.

Quote:
Where have you placed this style definition? I just came across an issue over on the Stanza support forum, in which Stanza Support stated that "Stanza ignores the styles in the header of individual XHTML files." You have to put it inline or in a separate CSS file. GRRRR!
It's in the css. I try to avoid inline or styling in the header as much as possible and rarely use them, especially styling in the header.

Below is the entire coding for that dedication page. Do you see anything out of the ordinary? I am really stumped. The !important addition seems to be working everywhere else. But in this case, the dedication is just scrunched up to the top left corner of the page in Stanza as if there were no !important designation. I think maybe Stanza is just throwing up a fit and rebelling!

page coding:

Code:
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml"> <head>
<title>The Cloud Atlas</title>
<meta name="Adept.resource" value="urn:uuid:68c8cf51-d1e0-4a9a-9fcf-6d5a4436ca75"/>
<meta content="http://www.w3.org/1999/xhtml; charset=utf-8" http-equiv="Content-Type"/><link href="../stylesheet.css" type="text/css" rel="stylesheet"/><style type="text/css">
		@page { margin-bottom: 5.000000pt; margin-top: 5.000000pt; }</style></head>
<body class="calibre"><div id="ded" class="calibre1">
</br>
<p class="ded">To Lucy<br class="ded"/>
Would that I had<br class="ded"/>
had such a map</p>
</div>
</body>
</html>

Last edited by PatNY; 09-30-2010 at 05:18 PM.
PatNY is offline   Reply With Quote