Title: CSS Not Working On Theme
Last modified: July 31, 2023

---

# CSS Not Working On Theme

 *  Resolved [aditya58singh](https://wordpress.org/support/users/aditya58singh/)
 * (@aditya58singh)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/css-not-working-on-theme/)
 * Hi, I have added a css in the Plugin only
 * .tablepress.compare tr.row-2 {
   /* choose a row number to stick _/ position: sticky;/_
   make it stick _/ top: 0; /_ Set the offset (required) _/ box-shadow: inset 0 -
   1px #ddd; /_ fake border */}But it is not working properly as 2 row should be
   sticky.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcss-not-working-on-theme%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/css-not-working-on-theme/#post-16936585)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I can see what you are trying to do, but unfortunately, this is still very tricky
   in web browsers, and there are many prerequisites that need to be fulfilled in
   order for this to work. For example, there can not be “overflowing” elements 
   in DOM tree above the table.
 * TablePress itself is not doing anything to prevent this from working, but I also
   can’t see what exactly on your site is preventing this, sorry 🙁
 * Regards,
   Tobias

Viewing 1 replies (of 1 total)

The topic ‘CSS Not Working On Theme’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/css-not-working-on-theme/#post-16936585)
 * Status: resolved