Quote:
Originally Posted by Arkadian
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
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;
[...]
}
[...]