.chapter-number {\ncolor: #c8000c; }\nbody {\nline-height: 2em; }<\/code>\n\nHere\u2019s what the PDF looks like before and after:\n\n<\/a>\n\nTo see what other kinds of things you can customize, you can look through the theme stylesheet in the \u201cTheme Styles\u201d section. This allows you to find the styles for various elements in your book, then copy the corresponding section into \u201cYour Styles\u201d to edit. Anything you enter will override the original theme styles for that element.\nAdvanced Users<\/h2>\nEven if you\u2019re fluent in CSS, remember that each of the formats Pressbooks produces operates slightly differently, so what you may be used to using for a web page won\u2019t necessarily translate to a PDF or ebook. However, our themes still follow a (semi!) logical pattern, so with some practice you can become a pro! While you\u2019re figuring things out, we recommend using the XHTML export to help you isolate particular classes and elements.\nImplications for Pressbooks Custom CSS Theme<\/h1>\nThe Pressbooks Custom CSS theme will be retired in favour of the Custom Styles feature detailed in this chapter. This means that:\n\n \t- New books will not see the Pressbooks Custom CSS theme in the theme list and will make all custom changes using the new feature<\/li>\n \t
- Existing books with the Custom CSS theme will remain unaffected so long as you don\u2019t switch away from it<\/strong>!<\/li>\n<\/ol>\nIf your book has the Custom CSS theme applied, you will need to stay on that theme or risk losing your changes. If you think you might have to change themes at some point, first copy your stylesheets into a text editor (e.g. Notepad or MS Word). Then, you can change your theme, navigate to the \u201cCustom Styles\u201d section and re-enter the sections of your stylesheet that you have changed, following the steps detailed above.\n
Using the Cover Generator<\/h1>\nIf your book is currently on the Pressbooks Custom CSS theme, you must save your custom CSS stylesheets before you use the cover generator tool. When you switch to a different theme to generate a cover, you will not be able to access the Pressbooks Custom CSS theme again. However, you can still add your customization in the Custom Styles menu using the instructions above. Use the saved version of the CSS to see what changes you had made to your book, and enter them in the \u201cYour Styles\u201d section.\n\nIf you aren\u2019t sure how to use the Custom Styles option, or have other questions, contact us<\/a>!<\/em>","rendered":"\nPressbooks allows you to modify our themes using CSS. You can use custom styles to customize your web, ebook (EPUB and MOBI) and PDF (print and digital) files. This chapter will cover:<\/p>\n
\n- How to use custom styles<\/li>\n
- What to do if you\u2019re using the Pressbooks Custom CSS theme<\/li>\n<\/ul>\n<\/div>\n
Note: If you are currently using the Pressbooks Custom CSS theme, you can continue to do so — there is no need to switch to the Custom Styles option on your existing books. However, do note that if you switch away from the Pressbooks Custom CSS theme in future, you will not be able to return to it, as it is being retired in favour of the new Custom Styles feature. If you have any questions about this transition, please contact support@pressbooks.com<\/a>.<\/em><\/p>\nWhat are Custom Styles?<\/h1>\n
Custom styles allow you to add CSS to your book\u2019s stylesheet, meaning you can add, change and override the formatting in any of our themes. If you\u2019re fluent in CSS, this means you can take one of our existing themes and adjust it to meet your needs by adding colours, changing margins or making any other number of adjustments you wish.<\/p>\n
The advantage of handling custom styles as additions to an existing theme, instead of being able to edit the stylesheet directly, is that your book will continue to benefit from updates and bug fixes that improve your experience with Pressbooks. If you have previously used the Pressbooks Custom CSS theme to edit your book\u2019s CSS, see the section below<\/a> for what you need to know.<\/p>\n<\/a>How do I add them?<\/h1>\nTo add custom styles to your book, follow the steps below:<\/p>\n
1. Go to the Custom Styles Menu<\/span><\/h2>\nOnce you have selected a theme for your book, go to Appearance \u2192 Custom Styles.<\/p>\n