View Single Post
Old 09-15-2014, 05:01 PM   #13
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Arkadian View Post
but then I have a second one called page_styles which contains only

Code:
@page {
    margin-bottom: 5pt;
    margin-top: 5pt
    }
Ok, page_styles.css is just a SECOND CSS stylesheet generated by Calibre (you can apply more than one at the same time, you can have a million CSS stylesheets "linked" to an HTML file if you wanted). Typically a book will only have ONE stylesheet, although Calibre tries to separate the stuff on a PER PAGE level into page_style.css, while things effecting the BOOK level, will be in stylesheet.css.

That @page code above just says "on each page, make the top and bottom margins 5pt big".

You can completely ignore the page_style.css file (don't shove any extra stuff in there). Just focus on stylesheet.css.

Quote:
Originally Posted by Arkadian View Post
Now, I did try to enter that code in both files, but it didn't like it and gave me an error instead.
What gave an error where?

So you see where in your image you have:

Code:
.block_ {
	display: block;
	font-family: "Courier New", serif;
	[...]
}
What you will want to do, is add the body code BEFORE that. So you want the stylesheet.css file to start out like this:

Code:
body {
  adobe-hyphenate: none;
  hyphenate: none;
  hyphens: none;
  -moz-hyphens: none;
  -webkit-hyphens: none;
}

.block_ {
	display: block;
	font-family: "Courier New", serif;
	[...]
}

[...]

Last edited by Tex2002ans; 09-15-2014 at 05:03 PM.
Tex2002ans is offline   Reply With Quote