Quote:
Originally Posted by theducks
THAT is the whole purpose of a CSS
Style once, link from one to however many.
Open a EPUB and look at the code.
class="aname"
is the clue that a style ' block' applies
If you see a <link... .css in the header code, that is the link to a stylesheet
|
theducks, thanks for the reply. I did know that CSS is supposed to style a whole document, but I appreciate the explanation. Just don't know much about them other than that
I have seen some ebooks I have downloaded and been editing (mostly to go after spelling and punctuation errors) with CSS sheets included in the list on the menu to the left.
Besides not really knowing enough beyond the basic concept of what a CSS file is in order to make my own (which I can go to W3 or whatever the website is, or another website I can google and learn more about them) I hadn't noticed what you said about a link to the CSS being in the header code, so that was some useful information I didn't know.
I am guessing that the Calibre editor has some way to easily insert the CSS link in the headers of the HTML text files in the list on the left, although I haven't explored the program enough to know how to find it yet, I will take another look at it.
I should start a new topic about something else I don't understand about editing an ePub, if I can't find a thread on the Editor Forum where it's already been asked and answered of course.
When I save a copy of a book to local disk out of the Calibre Library, I am seeing some strange behavior, or at least strange to me. When the book is saved, it seems like (I could be mistaken) the book always saves to the local directory with 3 files - .epub file, .jpg file or something (the book cover?) and another file (.opf I believe). I don't really understand how to 'package' everything back up (the .epub, .jpg, .opf, and any .css files) into one stand-alone ePub file like it originally came as, when I'm done going after those pesky spelling errors and such.

Or packaging everything up if I was editing my own book from scratch. Thanks for the information on CSS, greatly appreciated