Title: Sprite css image in cell
Last modified: August 21, 2016

---

# Sprite css image in cell

 *  Resolved [ob86](https://wordpress.org/support/users/ob86/)
 * (@ob86)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/sprite-css-image-in-cell/)
 * Hello,
    i’m trying to add sprite css images in cells.. but (using <div>) it create
   a big white space. Is there any solution? Thanks
 * [http://wordpress.org/plugins/tablepress/](http://wordpress.org/plugins/tablepress/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/sprite-css-image-in-cell/#post-4066725)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Using `<div>`s is the right solution, but you will need to be careful with white
   space: All HTML code must be on one line, without any manual line breaks.
    Another
   reason might be that your theme adds extra margins or paddings to the `<div>`
   s. Can you therefore please post a link to the page with the table in question,
   so that I can take a direct look? Thanks!
 * Regards,
    Tobias
 *  Thread Starter [ob86](https://wordpress.org/support/users/ob86/)
 * (@ob86)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/sprite-css-image-in-cell/#post-4066727)
 * Hello Tobias!
    Thanks for your quick reply!
 * This is the page [http://www.myusa.it/guida-stati-uniti/guida-viaggio-chicago.html](http://www.myusa.it/guida-stati-uniti/guida-viaggio-chicago.html)
 * i set the code in one line… and is a little bit better
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/sprite-css-image-in-cell/#post-4066731)
 * Hi,
 * thanks for the link!
 * The white space is indeed coming from the code. The CSS classes “icon” and “margin”
   that are used in the code add that extra padding and margin.
 * You should either remove those from the HTML, or override the padding and margin,
   if they are in a table, e.g. with
 *     ```
       .tablepress-id-4 .icon,
       .tablepress-id-4 .margin {
         padding: 0px !important;
         margin: 0px !important;
       }
       ```
   
 * Regards,
    Tobias
 *  Thread Starter [ob86](https://wordpress.org/support/users/ob86/)
 * (@ob86)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/sprite-css-image-in-cell/#post-4066772)
 * Thank you very much for your support!
    I’m going to try! Thanks
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/sprite-css-image-in-cell/#post-4066773)
 * Hi,
 * no problem, you are very welcome! 🙂 Hope this helps!
 * Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Sprite css image in cell’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/sprite-css-image-in-cell/#post-4066773)
 * Status: resolved