# TablePress Custom Text Color in Digital PDF Exports

**URL:** <https://pressbooks.community/t/tablepress-custom-text-color-in-digital-pdf-exports/1773>\
**Category:** Importing & Exporting Content\
**Created:** [September 23, 2021, 5:57pm UTC](https://pressbooks.community/t/tablepress-custom-text-color-in-digital-pdf-exports/1773 "2021-09-23T17:57:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ColbyDigsSoil](https://pressbooks.community/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@ColbyDigsSoil](https://pressbooks.community/u/ColbyDigsSoil)\
**Post date:** [September 23, 2021, 5:57pm UTC](https://pressbooks.community/t/tablepress-custom-text-color-in-digital-pdf-exports/1773/1 "2021-09-23T17:57:25Z")

</div>

I’m working on creating an instructor copy of a laboratory manual, https://kstatelibraries.pressbooks.pub/soilslabmanual/. The instructor copy chapters are not publicly viewable in the web book at the moment. For the instructor copy I make the text of all filled-in answers be italicized and “indigo” in color. I used the span command described here to stylize individual cells, https://tablepress.org/faq/highlight-cells-or-content/. It worked fine for web book/preview of each chapter, but when I export the book as a PDF for digital distribution the stylized text is no longer blue, but it does stay italicized. The custom CSS I added within the TablePress plugin is as follows:

```auto
.tablepress .tableanswer-1 {
	color: #333399;
	text-decoration: italic;

```

An example of code added to individual cells is as follows:

> `<span class="tableanswer-1"><em>cell text</em></span>`

---

<div class="post-metadata">

**Author:** ![SteelWagstaff](https://pressbooks.community/user_avatar/pressbooks.community/steelwagstaff/32/1280_2.png) [@SteelWagstaff](https://pressbooks.community/u/SteelWagstaff)\
**Post date:** [September 30, 2021, 3:49am UTC](https://pressbooks.community/t/tablepress-custom-text-color-in-digital-pdf-exports/1773/2 "2021-09-30T03:49:23Z")

</div>

To apply changes for your exports, you may need to add this custom CSS not in the TablePress plugin (which will only affect the webbook) but using thePressbooks Custom CSS feature. There are separate sheets for web and PDF exports. See [Customizing your Exports with Custom Styles – Pressbooks User Guide](https://guide.pressbooks.com/chapter/customizing-your-exports-with-custom-styles/) for details.

---

<div class="post-metadata">

**Author:** ![ColbyDigsSoil](https://pressbooks.community/letter_avatar_proxy/v4/letter/c/977dab/32.png) [@ColbyDigsSoil](https://pressbooks.community/u/ColbyDigsSoil)\
**Post date:** [October 4, 2021, 9:47pm UTC](https://pressbooks.community/t/tablepress-custom-text-color-in-digital-pdf-exports/1773/3 "2021-10-04T21:47:50Z")

</div>

This worked perfectly. Thanks, @SteelWagstaff!
