# \[CSS\] Is it possible to format a row depending on a field's contents?

**URL:** <https://forums.knack.com/t/css-is-it-possible-to-format-a-row-depending-on-a-fields-contents/6631>\
**Category:** Ask Developers\
**Created:** [October 1, 2019, 8:55am UTC](https://forums.knack.com/t/css-is-it-possible-to-format-a-row-depending-on-a-fields-contents/6631 "2019-10-01T08:55:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CatParkins31278](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@CatParkins31278](https://forums.knack.com/u/CatParkins31278)\
**Post date:** [October 1, 2019, 8:55am UTC](https://forums.knack.com/t/css-is-it-possible-to-format-a-row-depending-on-a-fields-contents/6631/1 "2019-10-01T08:55:59Z")

</div>

Hi,

Is it possible to set an entire (pivot table) row to bold if a field contains a specific trigger word ?  
  
Unfortunately, depending on how the table is filtered, it's not as easy as formatting every other line

---

<div class="post-metadata">

**Author:** ![CatParkins31278](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@CatParkins31278](https://forums.knack.com/u/CatParkins31278)\
**Post date:** [October 17, 2019, 10:23am UTC](https://forums.knack.com/t/css-is-it-possible-to-format-a-row-depending-on-a-fields-contents/6631/2 "2019-10-17T10:23:48Z")

</div>

Thank you for your response ... I'd not though of going that Javascript route

---

<div class="post-metadata">

**Author:** ![BillLynch46385](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@BillLynch46385](https://forums.knack.com/u/BillLynch46385)\
**Post date:** [October 16, 2019, 3:10am UTC](https://forums.knack.com/t/css-is-it-possible-to-format-a-row-depending-on-a-fields-contents/6631/3 "2019-10-16T03:10:56Z")

</div>

I think you need to look at using Javascript to do it, a la this: [https://stackoverflow.com/questions/32748771/color-table-row-based-on-column-value](https://stackoverflow.com/questions/32748771/color-table-row-based-on-column-value) -- basically, you a little more than CSS can offer to introspect the table values and set CSS classes as a result.
